mirror of https://github.com/gorhill/uBlock.git
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.
|
// context.
|
||||||
const cssIdentifier = '[A-Za-z_][\\w-]*';
|
const cssIdentifier = '[A-Za-z_][\\w-]*';
|
||||||
const cssClassOrId = `[.#]${cssIdentifier}`;
|
const cssClassOrId = `[.#]${cssIdentifier}`;
|
||||||
const cssAttribute = `\\[${cssIdentifier}(?:[*^$]?="[^"\\]\\\\]+")?\\]`;
|
const cssAttribute = `\\[${cssIdentifier}(?:[*^$]?="[^"\\]\\\\\\x09-\\x0D]+")?\\]`;
|
||||||
const cssSimple =
|
const cssSimple =
|
||||||
'(?:' +
|
'(?:' +
|
||||||
`${cssIdentifier}(?:${cssClassOrId})*(?:${cssAttribute})*` + '|' +
|
`${cssIdentifier}(?:${cssClassOrId})*(?:${cssAttribute})*` + '|' +
|
||||||
|
|
Loading…
Reference in New Issue