Fix improper handling of match-all removeparam

Related discussion:
- https://github.com/uBlockOrigin/uBlock-issues/issues/1978#issuecomment-1038143619
This commit is contained in:
Raymond Hill 2022-02-13 09:41:54 -05:00
parent 2933016d4b
commit ce3ac010b5
No known key found for this signature in database
GPG Key ID: 25E1490B761470C2
1 changed files with 1 additions and 5 deletions

View File

@ -2926,11 +2926,7 @@ class FilterCompiler {
processModifierOption(modifier, value) {
if ( this.modifyType !== undefined ) { return false; }
this.modifyType = modifier;
if ( value !== undefined ) {
this.modifyValue = value;
} else if ( this.action === AllowAction ) {
this.modifyValue = '';
}
this.modifyValue = value || '';
return true;
}