about summary refs log tree commit diff stats
path: root/src/pages/options/general.js
diff options
context:
space:
mode:
authorManeraKai <manerakai@protonmail.com>2022-02-04 02:13:37 +0300
committerManeraKai <manerakai@protonmail.com>2022-02-04 02:13:37 +0300
commiteb6e58af5225fe8674e78c741ea6ecd50667b446 (patch)
treef127489d3cf5ccca4add346bbea309e5ccee1234 /src/pages/options/general.js
parentchanging from || to ?? (diff)
downloadlibredirect-eb6e58af5225fe8674e78c741ea6ecd50667b446.zip
Cleaning and updating the updateInstance func
Diffstat (limited to 'src/pages/options/general.js')
-rw-r--r--src/pages/options/general.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/pages/options/general.js b/src/pages/options/general.js
index 9b0731a1..1104ba16 100644
--- a/src/pages/options/general.js
+++ b/src/pages/options/general.js
@@ -54,9 +54,9 @@ function addToExceptions() {
     try {
       let value = input.value;
       new RegExp(input.value);
-      if (type === "URL") {
+      if (type === "URL")
         value = value.replace(/[-\/\\^$*+?.()|[\]{}]/g, "\\$&");
-      }
+
       exceptions.push(value);
       browser.storage.sync.set({
         exceptions: exceptions,