瀏覽代碼

去除¥符号

xiaohaizhao 2 年之前
父節點
當前提交
9b3721ea72
共有 1 個文件被更改,包括 1 次插入1 次删除
  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"