DEV: Escape $ in regex

This commit is contained in:
Joe 2019-04-19 20:18:56 +08:00
parent 80c1f17f6a
commit 0bbfa7b028
1 changed files with 1 additions and 1 deletions

View File

@ -24,7 +24,7 @@
.trim()
.toLowerCase()
.replace(
/[\{\}\[\]\\\/\<\>\(\)\|\+\?\*\^\'\`\'\"\.\_\d\s~!@#$%&,;:=]/gi,
/[\{\}\[\]\\\/\<\>\(\)\|\+\?\*\^\'\`\'\"\.\_\$\d\s~!@#%&,;:=]/gi,
"-"
)
.replace(/\-\-+/g, "-")