From 8632cd6072bf871c7038409a4bf947fc3180fb42 Mon Sep 17 00:00:00 2001 From: Raymond Hill Date: Sun, 30 Mar 2025 16:56:04 -0400 Subject: [PATCH] Fix typo causing regression in `uritransform=` Related feedback: https://github.com/uBlockOrigin/uAssets/discussions/27802 --- src/js/static-filtering-parser.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/js/static-filtering-parser.js b/src/js/static-filtering-parser.js index 716e4bc41..3ba2c4653 100644 --- a/src/js/static-filtering-parser.js +++ b/src/js/static-filtering-parser.js @@ -1473,7 +1473,7 @@ export class AstFilterParser { break; } const value = this.getNetOptionValue(NODE_TYPE_NET_OPTION_NAME_URLTRANSFORM); - if ( value !== '' && parseReplacebyRegexValue(value) === undefined ) { + if ( value !== '' && parseReplaceByRegexValue(value) === undefined ) { this.astError = AST_ERROR_OPTION_BADVALUE; realBad = true; } @@ -3029,7 +3029,7 @@ export function parseHeaderValue(arg) { // https://adguard.com/kb/general/ad-filtering/create-own-filters/#replace-modifier -export function parseReplacebyRegexValue(s) { +export function parseReplaceByRegexValue(s) { if ( s.charCodeAt(0) !== 0x2F /* / */ ) { return; } const parser = new ArglistParser('/'); parser.nextArg(s, 1); @@ -3057,7 +3057,7 @@ export function parseReplacebyRegexValue(s) { export function parseReplaceValue(s) { if ( s.startsWith('/') ) { - const r = parseReplacebyRegexValue(s); + const r = parseReplaceByRegexValue(s); if ( r ) { r.type = 'text'; } return r; }