Authored by Targaryen

punctuation

... ... @@ -82,7 +82,7 @@ $addressForm.on('submit', function() {
return false;
}
if (username && /([^u4e00-\u9fa5])([^\p{P}])/gi.test(username)) {
if (username && /[^u4e00-\u9fa5]/gi.test(username)) {
tip.show('收货人姓名不支持特殊符号');
return false;
}
... ...
... ... @@ -47,7 +47,7 @@ $btnSure.on('click', function() {
return false;
}
if (username && /([^u4e00-\u9fa5])([^\p{P}])/gi.test(username)) {
if (username && /[^u4e00-\u9fa5]/gi.test(username)) {
tip.show('收货人姓名不支持特殊符号');
return false;
}
... ...