From edce348050a03953780b4925b8a3c2ad4965fddf Mon Sep 17 00:00:00 2001 From: narcolepticinsomniac Date: Fri, 8 Mar 2019 03:49:41 -0500 Subject: [PATCH] Improve exclude rule matching --- background/style-manager.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) {