拼音正则

master
xierz 5 years ago
parent 450c72bca5
commit 030b13a0f8
  1. 2
      src/main/webapp/WEB-INF/manager/cms/category/form.ftl

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

Loading…
Cancel
Save