mirror of
https://github.com/gorhill/uBlock.git
synced 2026-03-11 09:04:36 +00:00
Fix regression in trusted-replace-argument scriptlet
This commit is contained in:
parent
16c0f69853
commit
2e509d42fc
1 changed files with 1 additions and 0 deletions
|
|
@ -72,6 +72,7 @@ export function trustedReplaceArgument(
|
|||
const parsed = parseReplaceFn(argraw.slice(5));
|
||||
if ( parsed === undefined ) { return; }
|
||||
replacer = arg => `${arg}`.replace(replacer.re, replacer.replacement);
|
||||
Object.assign(replacer, parsed);
|
||||
} else if ( argraw.startsWith('add:') ) {
|
||||
const delta = parseFloat(argraw.slice(4));
|
||||
if ( isNaN(delta) ) { return; }
|
||||
|
|
|
|||
Loading…
Reference in a new issue