Skip to content

Commit 7caf311

Browse files
committed
Adjust tag regex to catch comment tags.
1 parent 1a57b36 commit 7caf311

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/parse.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*jshint -W030 */
2-
var tagRE = /<(?:"[^"]*"['"]*|'[^']*'['"]*|[^'">])+>/g;
2+
var tagRE = /(?:<!--[\S\s]*-->|<(?:"[^"]*"['"]*|'[^']*'['"]*|[^'">])+>)/g;
33
var parseTag = require('./parse-tag');
44
// re-used obj for quick lookups of components
55
var empty = Object.create ? Object.create(null) : {};

0 commit comments

Comments
 (0)