docs(compiler): add comment to warn about regexp changes (#14106)
ref #14082
This commit is contained in:

committed by
Alex Rickabaugh

parent
3b2fb23805
commit
6e36bb7b20
@ -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*)', // ","
|
||||||
|
Reference in New Issue
Block a user