Skip to content

Commit 1a87466

Browse files
committed
fix: case sensitivity breaks empty elements, close #49
1 parent 041774c commit 1a87466

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ function render(tree, options) {
7272
return singleRegExp.some(reg => reg.test(tag));
7373
}
7474

75-
if (!singleTags.includes(tag)) {
75+
if (!singleTags.includes(tag.toLowerCase())) {
7676
return false;
7777
}
7878

0 commit comments

Comments
 (0)