docs(compiler): add comment to warn about regexp changes (#14106)

ref #14082
This commit is contained in:
Victor Berchet 2017-01-25 10:27:18 -08:00 committed by Alex Rickabaugh
parent 6152eb24bc
commit a733444d0e
1 changed files with 1 additions and 0 deletions

View File

@ -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*)', // ","