Merge remote-tracking branch 'baidu/master'

This commit is contained in:
2betop 2020-04-09 16:16:27 +08:00
commit a42d391875
1 changed files with 1 additions and 1 deletions

View File

@ -314,7 +314,7 @@ export function str2rules(
if (~idx) { if (~idx) {
validateMethod = validation.substring(0, idx); validateMethod = validation.substring(0, idx);
args = /^matchRegexp/.test(validateMethod) args = /^matchRegexp/.test(validateMethod)
? [validation] ? [validation.substring(idx + 1).trim()]
: validation : validation
.substring(idx + 1) .substring(idx + 1)
.split(',') .split(',')