mirror of
https://github.com/gorhill/uBlock.git
synced 2026-03-11 09:04:36 +00:00
Fix regex used to extract attribute name in element picker
Related feedback: - https://www.reddit.com/r/uBlockOrigin/comments/mh2ctv/
This commit is contained in:
parent
97619cf8f5
commit
9a94ba0a22
1 changed files with 1 additions and 1 deletions
|
|
@ -252,7 +252,7 @@ const cosmeticCandidatesFromFilterChoice = function(filterChoice) {
|
|||
}
|
||||
// Remove attribute values.
|
||||
if ( (specificity & 0b0010) === 0 ) {
|
||||
const match = /^\[([^^=]+)\^?=.+\]$/.exec(filter);
|
||||
const match = /^\[([^^*$=]+)[\^*$]?=.+\]$/.exec(filter);
|
||||
if ( match !== null ) {
|
||||
filter = `[${match[1]}]`;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue