mirror of
https://github.com/gorhill/uBlock.git
synced 2026-03-11 09:04:36 +00:00
Fix typo causing regression in uritransform=
Related feedback: https://github.com/uBlockOrigin/uAssets/discussions/27802
This commit is contained in:
parent
9adedbc30e
commit
8632cd6072
1 changed files with 3 additions and 3 deletions
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue