Authored by 郭成尧

Merge branch 'feature/fcs' into 'release/5.7'

星号



See merge request !594
... ... @@ -86,7 +86,7 @@ $addressForm.on('submit', function() {
return false;
}
if (username && !/^[\u4E00-\u9FA5A-Za-z0-9]+$/gi.test(username)) {
if (username && !/^[\u4E00-\u9FA5A-Za-z0-9*]+$/gi.test(username)) {
tip.show('收货人姓名不支持特殊符号');
return false;
}
... ...
... ... @@ -49,7 +49,7 @@ $usernameInput.bind('input propertychange', function() {
$btnSure.on('click', function() {
let username = $usernameInput.val().replace(/(^\s+)|(\s+$)/g, '');
if (username && !/^[\u4E00-\u9FA5A-Za-z0-9]+$/gi.test(username)) {
if (username && !/^[\u4E00-\u9FA5A-Za-z0-9*]+$/gi.test(username)) {
tip.show('收货人姓名不支持特殊符号');
return false;
}
... ...