File tree Expand file tree Collapse file tree 3 files changed +9
-9
lines changed Expand file tree Collapse file tree 3 files changed +9
-9
lines changed Original file line number Diff line number Diff line change @@ -385,14 +385,14 @@ var Parser = (function () {
385385 var htmlPattern1 = new RegExp ( '^\s*<(' + special + ')(\s+[^>]*)?>' , 'i' ) ;
386386 var htmlPattern2 = new RegExp ( '<\/(' + special + ')>\s*$' , 'i' ) ;
387387 if ( matches = line . match ( htmlPattern1 ) ) {
388- var _tag = matches [ 1 ] . toLowerCase ( ) ;
389- if ( ! this . isBlock ( 'html' , _tag ) && ! this . isBlock ( 'pre' ) ) {
390- this . startBlock ( 'html' , key , _tag ) ;
388+ var tag = matches [ 1 ] . toLowerCase ( ) ;
389+ if ( ! this . isBlock ( 'html' , tag ) && ! this . isBlock ( 'pre' ) ) {
390+ this . startBlock ( 'html' , key , tag ) ;
391391 }
392392
393393 continue ;
394394 } else if ( matches = line . match ( htmlPattern2 ) ) {
395- tag = matches [ 1 ] . toLowerCase ( ) ;
395+ var tag = matches [ 1 ] . toLowerCase ( ) ;
396396
397397 if ( this . isBlock ( 'html' , tag ) ) {
398398 this . setBlock ( key ) . endBlock ( ) ;
Original file line number Diff line number Diff line change 431431 var htmlPattern1 = new RegExp ( '^\s*<(' + special + ')(\s+[^>]*)?>' , 'i' ) ;
432432 var htmlPattern2 = new RegExp ( '<\/(' + special + ')>\s*$' , 'i' ) ;
433433 if ( matches = line . match ( htmlPattern1 ) ) {
434- var _tag = matches [ 1 ] . toLowerCase ( ) ;
435- if ( ! this . isBlock ( 'html' , _tag ) && ! this . isBlock ( 'pre' ) ) {
436- this . startBlock ( 'html' , key , _tag ) ;
434+ var tag = matches [ 1 ] . toLowerCase ( ) ;
435+ if ( ! this . isBlock ( 'html' , tag ) && ! this . isBlock ( 'pre' ) ) {
436+ this . startBlock ( 'html' , key , tag ) ;
437437 }
438438
439439 continue ;
440440 } else if ( matches = line . match ( htmlPattern2 ) ) {
441- tag = matches [ 1 ] . toLowerCase ( ) ;
441+ var tag = matches [ 1 ] . toLowerCase ( ) ;
442442
443443 if ( this . isBlock ( 'html' , tag ) ) {
444444 this . setBlock ( key ) . endBlock ( ) ;
Original file line number Diff line number Diff line change @@ -338,7 +338,7 @@ export default class Parser {
338338
339339 continue
340340 } else if ( matches = line . match ( htmlPattern2 ) ) {
341- tag = matches [ 1 ] . toLowerCase ( )
341+ let tag = matches [ 1 ] . toLowerCase ( )
342342
343343 if ( this . isBlock ( 'html' , tag ) ) {
344344 this . setBlock ( key )
You can’t perform that action at this time.
0 commit comments