Skip to content

Commit 3293258

Browse files
committed
simpler parsing
1 parent 1445c07 commit 3293258

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

lib/attributesParser.js

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,7 @@ var parser = new Parser({
1313
"<([a-zA-Z\\-:]+)\\s*": function(match, tagName) {
1414
this.currentTag = tagName;
1515
return "inside";
16-
},
17-
"[^<]+": true
16+
}
1817
},
1918
inside: {
2019
"\\s+": true, // eat up whitespace
@@ -34,9 +33,7 @@ var parser = new Parser({
3433
length: value.length,
3534
value: value
3635
});
37-
},
38-
"[a-zA-Z\-]+": true, // attribute without value
39-
"[^>]+": true // catch parsing errors
36+
}
4037
}
4138
});
4239

0 commit comments

Comments
 (0)