|
|
@ -177,7 +177,7 @@ angular.module('myApp.controllers', ['myApp.i18n']) |
|
|
|
var badPhone = !fullPhone.match(/^[\d\-+\s]+$/) |
|
|
|
var badPhone = !fullPhone.match(/^[\d\-+\s]+$/) |
|
|
|
if (!badPhone) { |
|
|
|
if (!badPhone) { |
|
|
|
fullPhone = fullPhone.replace(/\D/g, '') |
|
|
|
fullPhone = fullPhone.replace(/\D/g, '') |
|
|
|
if (fullPhone.length < 7) { |
|
|
|
if (fullPhone.length < 7 || fullPhone.length > 15) { |
|
|
|
badPhone = true |
|
|
|
badPhone = true |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|