diff --git a/src/js/static-filtering-parser.js b/src/js/static-filtering-parser.js index 55110b5d1..43804f2ed 100644 --- a/src/js/static-filtering-parser.js +++ b/src/js/static-filtering-parser.js @@ -3687,7 +3687,7 @@ class ExtSelectorCompiler { case 'has': { let r = this.astCompile(parts, { noaction: true }); if ( typeof r === 'string' ) { - r = { selector: r.replace(/^\s*:scope\s*/, ' ') }; + r = { selector: r.replace(/^\s*:scope\s*/, '') }; } return r; }