From dcdfdf279a11d31eaed7143c8d051ac37799f79c Mon Sep 17 00:00:00 2001 From: zyn Date: Fri, 12 May 2023 11:00:39 +0800 Subject: [PATCH] =?UTF-8?q?=E6=A0=87=E5=87=86=E7=BC=96=E5=8F=B7=E6=AD=A3?= =?UTF-8?q?=E5=88=99=E6=A0=A1=E9=AA=8C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/common/verify/index.js | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/common/verify/index.js b/src/common/verify/index.js index 270334e1b..cdc5e0db7 100644 --- a/src/common/verify/index.js +++ b/src/common/verify/index.js @@ -34,9 +34,8 @@ export default { }, validateStandardItem2 (rule, value, callback) { // return callback() - let testval = /^[A-Za-z0-9/]+$/ - let testval1 = /[.-;;()()]+/ - if (value && !value.match(testval) && !value.match(testval1)) { + let testval = /^[A-Za-z0-9\/\-.;;()()\s]+$/ + if (value && !value.match(testval)) { return callback(new Error('只能为(字母数字()().-;;)')) } else { callback()