csj 7 years ago
parent
commit
fa5e20ef22
2 changed files with 3 additions and 2 deletions
  1. 1 1
      tooth/clearing.html
  2. 2 1
      tooth/exchange-goods.html

+ 1 - 1
tooth/clearing.html

@@ -288,7 +288,7 @@
 			$(document).on('tap', '#go-pay', function() {
 
 				var remark = $("#textarea").val();
-				var ch_en_num = /^[A-Za-z0-9~!@#$%^&*()_+={}|<>?:;'"!@¥…(){}【】《》/`、;‘’:—“”,。,.?·_\-\u4e00-\u9fa5]{0,100}$/; //简体中文英文数字,符号(0-100位)
+				var ch_en_num = /^[A-Za-z0-9_\[\]\【\】\{\}\{\}\(\)\(\)\《\》\<\>\,\,\.\。\、\!\!\~\·\@\#\¥\$\%\^\…\&\—\:\:\;\;\‘\’\'\'\"\"\“\”\?\?\-\=\|\*\+\-\u4e00-\u9fa5]{0,100}$/;
 				if(ch_en_num.test(remark)) {
 					console.log("备注验证通过")
 				} else {

+ 2 - 1
tooth/exchange-goods.html

@@ -134,7 +134,8 @@
 					//}
 					
 //					var remark = $("#textarea").val();
-				var ch_en_num = /^[A-Za-z0-9~!@#$%^&*()_+={}|<>?:;'"!@¥…(){}【】《》/`、;‘’:—“”,。,.?·_\-\u4e00-\u9fa5]{0,100}$/; //简体中文英文数字,符号(0-100位)
+				var ch_en_num = /^[A-Za-z0-9_\[\]\【\】\{\}\{\}\(\)\(\)\《\》\<\>\,\,\.\。\、\!\!\~\·\@\#\¥\$\%\^\…\&\—\:\:\;\;\‘\’\'\'\"\"\“\”\?\?\-\=\|\*\+\-\u4e00-\u9fa5]{0,100}$/;
+
 				if(ch_en_num.test(remark)) {
 					console.log("退款验证通过")
 				} else {