diff --git a/background/style-manager.js b/background/style-manager.js index 1560f13e..cac3e752 100644 --- a/background/style-manager.js +++ b/background/style-manager.js @@ -523,7 +523,7 @@ const styleManager = (() => { } function buildGlob(text) { - return '^' + escapeRegExp(text).replace(/\\\\\\\*|\\\*/g, m => m.length > 2 ? m : '.*') + '$'; + return '^' + escapeRegExp(text).replace(/\\\\\\\*|\\\*/g, m => m.length > 2 ? m : '((\/|#|\\?).*)?') + '$'; } function getDomain(url) {