mirror of
https://github.com/gorhill/uBlock.git
synced 2024-11-05 02:12:36 +01:00
Do not treat selectors as "common" when char 0x09-0x0D are in attr value
This commit is contained in:
parent
0096b74d46
commit
9666eeb9cf
@ -3118,7 +3118,7 @@ class ExtSelectorCompiler {
|
||||
// context.
|
||||
const cssIdentifier = '[A-Za-z_][\\w-]*';
|
||||
const cssClassOrId = `[.#]${cssIdentifier}`;
|
||||
const cssAttribute = `\\[${cssIdentifier}(?:[*^$]?="[^"\\]\\\\]+")?\\]`;
|
||||
const cssAttribute = `\\[${cssIdentifier}(?:[*^$]?="[^"\\]\\\\\\x09-\\x0D]+")?\\]`;
|
||||
const cssSimple =
|
||||
'(?:' +
|
||||
`${cssIdentifier}(?:${cssClassOrId})*(?:${cssAttribute})*` + '|' +
|
||||
|
Loading…
Reference in New Issue
Block a user