Browse Source

去除¥符号

xiaohaizhao 1 year ago
parent
commit
9b3721ea72
1 changed files with 1 additions and 1 deletions
  1. 1 1
      utils/basicInspection.js

+ 1 - 1
utils/basicInspection.js

@@ -1,6 +1,6 @@
 /* 去除字符串中的特殊符号 */
 const queryStr = (str, title = '该符号不可输入!') => {
-    const pattern = new RegExp(/[`$%^&()\=<>"{}|\/;'\\[\]·%……&——\={}|]/g);
+    const pattern = new RegExp(/[`$%^&()\=<>"{}|\/;'\\[\]·%……&——\={}|]/g);
     if (pattern.test(str) == true && title) wx.showToast({
         title,
         icon: "none"