File tree Expand file tree Collapse file tree 1 file changed +1
-1
lines changed Expand file tree Collapse file tree 1 file changed +1
-1
lines changed Original file line number Diff line number Diff line change @@ -101,7 +101,7 @@ private static function buildPatterns() {
101
101
// Use "*+" instead of "*?" to avoid reaching the backtracking limit.
102
102
// <https://github.com/cssjanus/php-cssjanus/issues/14>, <https://phabricator.wikimedia.org/T215746#4944830>.
103
103
$ patterns ['url_chars ' ] = "(?: {$ patterns ['url_special_chars ' ]}| {$ patterns ['nonAscii ' ]}| {$ patterns ['escape ' ]})*+ " ;
104
- $ patterns ['lookahead_not_open_brace ' ] = "(?!( {$ patterns ['nmchar ' ]}| \\r? \\n|\s|#|\:|\.|\,|\+|>|\(|\)|\[|\]|=|\*=|~=|\^=|'[^']*'] )*+{) " ;
104
+ $ patterns ['lookahead_not_open_brace ' ] = "(?!( {$ patterns ['nmchar ' ]}| \\r? \\n|\s|#|\:|\.|\,|\+|>|\(|\)|\[|\]|=|\*=|~=|\^=|'[^']*'| \" [^ \" ]* \" | " . self :: TOKEN_COMMENT . " )*+{) " ;
105
105
$ patterns ['lookahead_not_closing_paren ' ] = "(?! {$ patterns ['url_chars ' ]}{$ patterns ['valid_after_uri_chars ' ]}\)) " ;
106
106
$ patterns ['lookahead_for_closing_paren ' ] = "(?= {$ patterns ['url_chars ' ]}{$ patterns ['valid_after_uri_chars ' ]}\)) " ;
107
107
$ patterns ['noflip_single ' ] = "/( {$ patterns ['noflip_annotation ' ]}{$ patterns ['lookahead_not_open_brace ' ]}[^;}]+;?)/i " ;
You can’t perform that action at this time.
0 commit comments