about summary refs log tree commit diff stats
path: root/background.js
diff options
context:
space:
mode:
authorSimonBrazell <simon@brazell.com.au>2020-05-04 10:30:51 +1000
committerSimonBrazell <simon@brazell.com.au>2020-05-04 10:30:51 +1000
commit4a08f5da8f04e4bd2ecf2b7bc3736fc40aa8b1be (patch)
treef562c9ab52cb58ceda0068735fc3358eb0c0e750 /background.js
parentFixes #40 - Empty whitelist broke redirects (diff)
downloadlibredirect-4a08f5da8f04e4bd2ecf2b7bc3736fc40aa8b1be.zip
Fixes #45 - some usersnames caught in instagramReservedPaths
Diffstat (limited to '')
-rw-r--r--background.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/background.js b/background.js
index f249b80f..6ebc84e8 100644
--- a/background.js
+++ b/background.js
@@ -26,7 +26,7 @@ const instagramDomains = [
   "help.instagram.com",
   "about.instagram.com",
 ];
-const instagramReservedPaths = /\/(p|favicon.ico|developer|legal|about|explore|support|press|api|privacy|safety|admin|help|terms|contact|blog|igtv)/;
+const instagramReservedPaths = /^\/(p|favicon.ico|developer|legal|about|explore|support|press|api|privacy|safety|admin|help|terms|contact|blog|igtv)\/?$/;
 const bibliogramBypassPaths = /\/(accounts\/|embeds?.js)/;
 const bibliogramInstances = [
   'https://bibliogram.art',