From abca844d5d0d1827d918d8badf3790c63e502c7b Mon Sep 17 00:00:00 2001 From: Ray Lothian Date: Wed, 13 Mar 2019 10:29:37 +0100 Subject: [PATCH] possible fix for #27 --- extension/common.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/extension/common.js b/extension/common.js index dc62565..fb373eb 100644 --- a/extension/common.js +++ b/extension/common.js @@ -188,7 +188,7 @@ function match({url, tabId}) { return true; } else if (prefs.exactMatch === false) { - return s.endsWith(h) || h.endsWith(s); + return s.endsWith('.' + h) || h.endsWith('.' + s); } }); } @@ -201,7 +201,7 @@ function match({url, tabId}) { return true; } else if (prefs.exactMatch === false) { - return s.endsWith(h) || h.endsWith(s); + return s.endsWith('.' + h) || h.endsWith('.' + s); } }) === false; } @@ -216,7 +216,7 @@ function match({url, tabId}) { return true; } else if (prefs.exactMatch === false) { - return s.endsWith(h) || h.endsWith(s); + return s.endsWith('.' + h) || h.endsWith('.' + s); } }).shift(); let s = prefs.custom[key] || prefs.custom['*'];