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
1 changed files with 1 additions and 1 deletions

View File

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