[mv3] Fix placeholder references for regexSubstitution

This commit is contained in:
Raymond Hill 2025-08-22 12:35:13 -04:00
parent cb62e38f50
commit 052c36aada
No known key found for this signature in database
GPG key ID: 25E1490B761470C2

View file

@ -505,7 +505,7 @@ export function parseNetworkFilter(parser) {
if ( parsed.re ) { return; }
rule.action.type = 'redirect';
rule.action.redirect = {
regexSubstitution: parsed.replacement,
regexSubstitution: parsed.replacement.replace(/\$(\d+)/g, '\\$1'),
};
break;
}