docs(compiler): add comment to warn about regexp changes (#14106)
ref #14082
This commit is contained in:
parent
6152eb24bc
commit
a733444d0e
|
@ -12,6 +12,7 @@ const _SELECTOR_REGEXP = new RegExp(
|
||||||
'(\\:not\\()|' + //":not("
|
'(\\:not\\()|' + //":not("
|
||||||
'([-\\w]+)|' + // "tag"
|
'([-\\w]+)|' + // "tag"
|
||||||
'(?:\\.([-\\w]+))|' + // ".class"
|
'(?:\\.([-\\w]+))|' + // ".class"
|
||||||
|
// "-" should appear first in the regexp below as FF31 parses "[.-\w]" as a range
|
||||||
'(?:\\[([-.\\w*]+)(?:=([^\\]]*))?\\])|' + // "[name]", "[name=value]"
|
'(?:\\[([-.\\w*]+)(?:=([^\\]]*))?\\])|' + // "[name]", "[name=value]"
|
||||||
'(\\))|' + // ")"
|
'(\\))|' + // ")"
|
||||||
'(\\s*,\\s*)', // ","
|
'(\\s*,\\s*)', // ","
|
||||||
|
|
Loading…
Reference in New Issue