We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 0da0c81 commit 6f046c8Copy full SHA for 6f046c8
index.js
@@ -43,13 +43,12 @@ function postHTMLParser(html, options) {
43
var directives = [].concat(defaultDirectives, options.directives || []);
44
var last = bufArray.last();
45
46
- var tagName;
47
for (var i = 0; i < directives.length; i++) {
48
var directive = directives[i];
49
var directiveText = directive.start + data + directive.end;
50
51
- tagName = name.toLowerCase();
52
- if (isDirective(directive, tagName)) {
+ name = name.toLowerCase();
+ if (isDirective(directive, name)) {
53
if (!last) {
54
results.push(directiveText);
55
return;
0 commit comments