From 081e5b4db98054c2f0fee00e62d0486e9cfe5273 Mon Sep 17 00:00:00 2001 From: Raymond Hill Date: Wed, 7 Mar 2018 10:37:18 -0500 Subject: [PATCH] fix #3581 --- src/js/static-net-filtering.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/js/static-net-filtering.js b/src/js/static-net-filtering.js index 78dbd2022..161728950 100644 --- a/src/js/static-net-filtering.js +++ b/src/js/static-net-filtering.js @@ -1817,14 +1817,14 @@ FilterParser.prototype.parse = function(raw) { // https://github.com/gorhill/uBlock/issues/3034 // - We can remove anchoring if we need to match all at the start. if ( s.startsWith('*') ) { - s = s.replace(/^\*+([^%0-9a-z])/, '$1'); + s = s.replace(/^\*+([^%0-9a-z])/i, '$1'); this.anchor &= ~0x6; } // remove pointless trailing * // https://github.com/gorhill/uBlock/issues/3034 // - We can remove anchoring if we need to match all at the end. if ( s.endsWith('*') ) { - s = s.replace(/([^%0-9a-z])\*+$/, '$1'); + s = s.replace(/([^%0-9a-z])\*+$/i, '$1'); this.anchor &= ~0x1; }