xiaodai2022 2 years ago
parent
commit
f98db34994
2 changed files with 2 additions and 2 deletions
  1. 0 0
      dist/static/js/app.js
  2. 2 2
      src/utils/validate.js

File diff suppressed because it is too large
+ 0 - 0
dist/static/js/app.js


+ 2 - 2
src/utils/validate.js

@@ -397,9 +397,9 @@ export function accMul(arg1, arg2) {
 
 export function isSpecialSymbol(s) {
   // console.log(s);
-  const str = (s ?? "").replace(/\\|\/|\*|\"|\'|\<|\>|\{|\}|\[|\]|\:|\.|\^|\$|\!|\~|\`|\|/g, "");
+  const str = (s ?? "").replace(/\\|\/|\*|\"|\'|\<|\>|\{|\}|\[|\]|\:|\^|\$|\!|\~|\`|\|/g, "");
   // console.log(str);
-  const pattern = new RegExp("[`~!@#$^&*()=|{}':;',.<>/?]");
+  const pattern = new RegExp("[`~!@#$^&*()=|{}':;',<>/?]");
   let specialStr = "";
   for (let i = 0; i < str.length; i++) {
     specialStr += str.substr(i, 1).replace(pattern, "");

Some files were not shown because too many files changed in this diff