Browse Source

去除——限制

xiaohaizhao 10 tháng trước cách đây
mục cha
commit
77f5aca481
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  1. 1 1
      utils/deleteMark.js

+ 1 - 1
utils/deleteMark.js

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