From 0bbfa7b02849ed857ea1a3da3cf9fb59e76251d5 Mon Sep 17 00:00:00 2001 From: Joe Date: Fri, 19 Apr 2019 20:18:56 +0800 Subject: [PATCH] DEV: Escape $ in regex --- common/header.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/common/header.html b/common/header.html index 38e85ec..588b0f6 100644 --- a/common/header.html +++ b/common/header.html @@ -24,7 +24,7 @@ .trim() .toLowerCase() .replace( - /[\{\}\[\]\\\/\<\>\(\)\|\+\?\*\^\'\`\'\"\.\_\d\s~!@#$%&,;:=]/gi, + /[\{\}\[\]\\\/\<\>\(\)\|\+\?\*\^\'\`\'\"\.\_\$\d\s~!@#%&,;:=]/gi, "-" ) .replace(/\-\-+/g, "-")