about summary refs log tree commit diff stats
path: root/src
diff options
context:
space:
mode:
authorManeraKai <manerakai@protonmail.com>2022-04-10 16:08:16 +0300
committerManeraKai <manerakai@protonmail.com>2022-04-10 16:08:16 +0300
commitfd78c090e066fd47c37cc8207224b9c7a6ddd831 (patch)
tree01c3e3c2877c98b3f0b14ac5766154b0c3ef444f /src
parentAdded simple url validation for the python fetching script #171 (diff)
downloadlibredirect-fd78c090e066fd47c37cc8207224b9c7a6ddd831.zip
Fixed imgur regex #180
Diffstat (limited to 'src')
-rw-r--r--src/assets/javascripts/helpers/imgur.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/assets/javascripts/helpers/imgur.js b/src/assets/javascripts/helpers/imgur.js
index cf679471..91e30fde 100644
--- a/src/assets/javascripts/helpers/imgur.js
+++ b/src/assets/javascripts/helpers/imgur.js
@@ -3,7 +3,7 @@ window.browser = window.browser || window.chrome;
 import commonHelper from './common.js'
 
 const targets = [
-    /^https?:\/{2}(i|).?imgur\.com(\/.*)?$/
+    /^https?:\/{2}([im]\.)?imgur\.com(\/|$)/
 ];
 
 let redirects = {