diff options
| author | ManeraKai <manerakai@protonmail.com> | 2022-02-04 02:13:37 +0300 |
|---|---|---|
| committer | ManeraKai <manerakai@protonmail.com> | 2022-02-04 02:13:37 +0300 |
| commit | eb6e58af5225fe8674e78c741ea6ecd50667b446 (patch) | |
| tree | f127489d3cf5ccca4add346bbea309e5ccee1234 /src/pages/options | |
| parent | changing from || to ?? (diff) | |
| download | libredirect-eb6e58af5225fe8674e78c741ea6ecd50667b446.zip | |
Cleaning and updating the updateInstance func
Diffstat (limited to 'src/pages/options')
| -rw-r--r-- | src/pages/options/general.js | 4 |
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, |
