1
0
mirror of synced 2026-08-05 22:36:55 +00:00

DEV: Escape $ in regex

This commit is contained in:
Joe
2019-04-19 20:18:56 +08:00
parent 80c1f17f6a
commit 0bbfa7b028
+1 -1
View File
@@ -24,7 +24,7 @@
.trim()
.toLowerCase()
.replace(
/[\{\}\[\]\\\/\<\>\(\)\|\+\?\*\^\'\`\'\"\.\_\d\s~!@#$%&,;:=]/gi,
/[\{\}\[\]\\\/\<\>\(\)\|\+\?\*\^\'\`\'\"\.\_\$\d\s~!@#%&,;:=]/gi,
"-"
)
.replace(/\-\-+/g, "-")