Skip to content

Commit 1b800f7

Browse files
committed
split directive checking per condition
1 parent 9403660 commit 1b800f7

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

index.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,9 @@ function postHTMLParser(html, options) {
3838
tagName = name.toLowerCase();
3939
if ((directive.name instanceof RegExp) && directive.name.test(tagName)) {
4040
isDirective = true;
41-
} else if (tagName === directive.name) {
41+
}
42+
43+
if (tagName === directive.name) {
4244
isDirective = true;
4345
}
4446

0 commit comments

Comments
 (0)