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 () {
385
385
var htmlPattern1 = new RegExp ( '^\s*<(' + special + ')(\s+[^>]*)?>' , 'i' ) ;
386
386
var htmlPattern2 = new RegExp ( '<\/(' + special + ')>\s*$' , 'i' ) ;
387
387
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 ) ;
391
391
}
392
392
393
393
continue ;
394
394
} else if ( matches = line . match ( htmlPattern2 ) ) {
395
- tag = matches [ 1 ] . toLowerCase ( ) ;
395
+ var tag = matches [ 1 ] . toLowerCase ( ) ;
396
396
397
397
if ( this . isBlock ( 'html' , tag ) ) {
398
398
this . setBlock ( key ) . endBlock ( ) ;
Original file line number Diff line number Diff line change 431
431
var htmlPattern1 = new RegExp ( '^\s*<(' + special + ')(\s+[^>]*)?>' , 'i' ) ;
432
432
var htmlPattern2 = new RegExp ( '<\/(' + special + ')>\s*$' , 'i' ) ;
433
433
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 ) ;
437
437
}
438
438
439
439
continue ;
440
440
} else if ( matches = line . match ( htmlPattern2 ) ) {
441
- tag = matches [ 1 ] . toLowerCase ( ) ;
441
+ var tag = matches [ 1 ] . toLowerCase ( ) ;
442
442
443
443
if ( this . isBlock ( 'html' , tag ) ) {
444
444
this . setBlock ( key ) . endBlock ( ) ;
Original file line number Diff line number Diff line change @@ -338,7 +338,7 @@ export default class Parser {
338
338
339
339
continue
340
340
} else if ( matches = line . match ( htmlPattern2 ) ) {
341
- tag = matches [ 1 ] . toLowerCase ( )
341
+ let tag = matches [ 1 ] . toLowerCase ( )
342
342
343
343
if ( this . isBlock ( 'html' , tag ) ) {
344
344
this . setBlock ( key )
You can’t perform that action at this time.
0 commit comments