summaryrefslogtreecommitdiff
path: root/extension/background.js
diff options
context:
space:
mode:
Diffstat (limited to 'extension/background.js')
-rw-r--r--extension/background.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/extension/background.js b/extension/background.js
index 50b5f6d..e610d72 100644
--- a/extension/background.js
+++ b/extension/background.js
@@ -32,7 +32,7 @@ function pathComponent(path, i) {
const components = path.split('/');
return components[i >= 0 ? i : components.length + i];
}
-function sanitize(s) { return s.replace(/[^A-Za-z0-9_\-\.]/gm, '_'); }
+function sanitize(s) { return s.replace(/[\/]/gm, '_'); }
const stringToUtf8Array = (function() {
const encoder = new TextEncoder("utf-8");
return str => encoder.encode(str);