Fix handling of extraMatch parameter in trusted-click-element scriptlet

Related feedback:
https://old.reddit.com/r/uBlockOrigin/comments/1qry49n/
This commit is contained in:
Raymond Hill 2026-02-01 10:54:34 -05:00
parent 719798329b
commit a8ad95394d
No known key found for this signature in database
GPG key ID: F5630CAE62A14316

View file

@ -1828,7 +1828,7 @@ function trustedClickElement(
const pos2 = s2.indexOf('=');
const key = pos2 !== -1 ? s2.slice(0, pos2).trim() : s2;
const value = pos2 !== -1 ? s2.slice(pos2+1).trim() : '';
out.re = new RegExp(`^${this.escapeRegexChars(key)}=${this.escapeRegexChars(value)}`);
out.re = new RegExp(`^${safe.escapeRegexChars(key)}=${safe.escapeRegexChars(value)}`);
return out;
}).filter(details => details !== undefined);
const allCookies = assertions.some(o => o.type === 'cookie')