mirror of
https://github.com/gorhill/uBlock.git
synced 2026-03-11 09:04:36 +00:00
Do not treat selectors as "common" when char 0x09-0x0D are in attr value
This commit is contained in:
parent
0096b74d46
commit
9666eeb9cf
1 changed files with 1 additions and 1 deletions
|
|
@ -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 a new issue