mirror of
https://github.com/angular/angular.git
synced 2026-09-14 13:54:52 +08:00
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("
|
||||
'([-\\w]+)|' + // "tag"
|
||||
'(?:\\.([-\\w]+))|' + // ".class"
|
||||
// "-" should appear first in the regexp below as FF31 parses "[.-\w]" as a range
|
||||
'(?:\\[([-.\\w*]+)(?:=([^\\]]*))?\\])|' + // "[name]", "[name=value]"
|
||||
'(\\))|' + // ")"
|
||||
'(\\s*,\\s*)', // ","
|
||||
|
||||
Reference in New Issue
Block a user