|
|
@@ -362,7 +362,7 @@ define(['app/app', 'calendar'], function (app) {
|
|
|
var size;
|
|
|
if(num == 1) {
|
|
|
if ($scope.address.name){
|
|
|
- size = $scope.address.name.replace(/[^x00-xFF]/g,'**').length;
|
|
|
+ size = $scope.address.name.replace(/[^\x00-\xff]/g,'**').length;
|
|
|
if (size > 20) {
|
|
|
$scope.userError = true;
|
|
|
return;
|
|
|
@@ -371,7 +371,7 @@ define(['app/app', 'calendar'], function (app) {
|
|
|
}
|
|
|
} else if(num == 2) {
|
|
|
if ($scope.address.tel){
|
|
|
- size = $scope.address.tel.replace(/[^x00-xFF]/g,'**').length;
|
|
|
+ size = $scope.address.tel.replace(/[^\x00-\xff]/g,'**').length;
|
|
|
if (size < 8 || size > 11) {
|
|
|
$scope.telError = true;
|
|
|
return;
|
|
|
@@ -386,7 +386,7 @@ define(['app/app', 'calendar'], function (app) {
|
|
|
}
|
|
|
} else if(num == 3) {
|
|
|
if ($scope.address.detailAddress){
|
|
|
- size = $scope.address.detailAddress.replace(/[^x00-xFF]/g,'**').length;
|
|
|
+ size = $scope.address.detailAddress.replace(/[^\x00-\xff]/g,'**').length;
|
|
|
if (size > 60) {
|
|
|
$scope.addrError = true;
|
|
|
return;
|