Showing
2 changed files
with
2 additions
and
2 deletions
@@ -82,7 +82,7 @@ $addressForm.on('submit', function() { | @@ -82,7 +82,7 @@ $addressForm.on('submit', function() { | ||
82 | return false; | 82 | return false; |
83 | } | 83 | } |
84 | 84 | ||
85 | - if (username && /([^u4e00-\u9fa5])([^\p{P}])/gi.test(username)) { | 85 | + if (username && /[^u4e00-\u9fa5]/gi.test(username)) { |
86 | tip.show('收货人姓名不支持特殊符号'); | 86 | tip.show('收货人姓名不支持特殊符号'); |
87 | return false; | 87 | return false; |
88 | } | 88 | } |
@@ -47,7 +47,7 @@ $btnSure.on('click', function() { | @@ -47,7 +47,7 @@ $btnSure.on('click', function() { | ||
47 | return false; | 47 | return false; |
48 | } | 48 | } |
49 | 49 | ||
50 | - if (username && /([^u4e00-\u9fa5])([^\p{P}])/gi.test(username)) { | 50 | + if (username && /[^u4e00-\u9fa5]/gi.test(username)) { |
51 | tip.show('收货人姓名不支持特殊符号'); | 51 | tip.show('收货人姓名不支持特殊符号'); |
52 | return false; | 52 | return false; |
53 | } | 53 | } |
-
Please register or login to post a comment