Skip to content

Commit f4470b6

Browse files
author
Jiang Shang
committed
bugifx
1 parent 6054770 commit f4470b6

File tree

3 files changed

+9
-9
lines changed

3 files changed

+9
-9
lines changed

dist/Parser.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff 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();

hyperdown.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -431,14 +431,14 @@
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();

src/Parser.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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)

0 commit comments

Comments
 (0)