拼音正则

This commit is contained in:
xierz 2020-11-20 11:49:50 +08:00
parent 450c72bca5
commit 030b13a0f8
1 changed files with 1 additions and 1 deletions

View File

@ -378,7 +378,7 @@
this.rules.categoryPinyin = [{
"validator": this.validatorCategoryPinyin, trigger: 'blur'
}, {
"pattern": /^[^[!@#$"'%^&*()_+-/~?@#¥%…&*()——+—?》《:“‘’]+$/,
"pattern": /^[^[!@#$"'%^&*()_+-/~?\\、@#¥%…&*()——+—?》《:“‘’\s]+$/,
"message": "拼音格式不匹配"
}];
if (this.regularCheck(regu, n)) {