1
0
mirror of https://github.com/gorhill/uBlock.git synced 2024-11-22 10:22:51 +01:00

Fix regression in trusted-replace-node-text scriptlet

Related commit:
8afd9e233d
This commit is contained in:
Raymond Hill 2024-07-21 08:34:18 -04:00
parent f1c45a2800
commit 14d90418b8
No known key found for this signature in database
GPG Key ID: 25E1490B761470C2

View File

@ -715,7 +715,7 @@ function replaceNodeTextFn(
const rePattern = safe.patternToRegex(pattern, 'gms');
const extraArgs = safe.getExtraArgs(Array.from(arguments), 3);
const reIncludes = safe.patternToRegex(extraArgs.includes || extraArgs.condition || '', 'ms');
const reExcludes = safe.patternToRegex(extraArgs.excludes || '', 'ms');
const reExcludes = safe.patternToRegex(extraArgs.excludes || '.^', 'ms');
const stop = (takeRecord = true) => {
if ( takeRecord ) {
handleMutations(observer.takeRecords());