mirror of https://github.com/gorhill/uBlock.git
Match `type` exactly in `prevent-addEventListener` scriptlet
Unless `type` is a regex of course. Related feedback: https://github.com/uBlockOrigin/uAssets/discussions/17907#discussioncomment-7362212
This commit is contained in:
parent
b8542cb894
commit
d32204f984
|
@ -1365,7 +1365,7 @@ function addEventListenerDefuser(
|
|||
) {
|
||||
const safe = safeSelf();
|
||||
const extraArgs = safe.getExtraArgs(Array.from(arguments), 2);
|
||||
const reType = safe.patternToRegex(type);
|
||||
const reType = safe.patternToRegex(type, undefined, true);
|
||||
const rePattern = safe.patternToRegex(pattern);
|
||||
const log = shouldLog(extraArgs);
|
||||
const debug = shouldDebug(extraArgs);
|
||||
|
|
Loading…
Reference in New Issue