We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 38d5218 commit 31d3ec6Copy full SHA for 31d3ec6
src/compiler/parser/html-parser.js
@@ -14,7 +14,7 @@ import { isNonPhrasingTag } from 'web/compiler/util'
14
15
// Regular Expressions for parsing tags and attributes
16
const singleAttrIdentifier = /([^\s"'<>/=]+)/
17
-const singleAttrAssign = /(?:=)/
+const singleAttrAssign = /(=)/
18
const singleAttrValues = [
19
// attr value double quotes
20
/"([^"]*)"+/.source,
@@ -25,7 +25,7 @@ const singleAttrValues = [
25
]
26
const attribute = new RegExp(
27
'^\\s*' + singleAttrIdentifier.source +
28
- '(?:\\s*(' + singleAttrAssign.source + ')' +
+ '(?:\\s*' + singleAttrAssign.source +
29
'\\s*(?:' + singleAttrValues.join('|') + '))?'
30
)
31
0 commit comments