Patch unanchored regex

This commit is contained in:
lowlighter committed 2020-10-20 22:04:06 +02:00
1 parent 0864320010
commit 34465b9323
2 files changed
+2 -2

No files matched your search

+1 -1
View File
@@ -122,7 +122,7 @@
},
url() {
const plugins = Object.entries(this.plugins.enabled)
.filter(([key, value]) => /^languages|followup$/.test(key) ? !value : value)
.filter(([key, value]) => /^(?:languages|followup)$/.test(key) ? !value : value)
.map(([key, value]) => `${key}=${+value}`)
.join("&")
return `${window.location.href}${this.user}${plugins.length ? `?${plugins}` : ""}`