diff --git a/app/js/controllers.js b/app/js/controllers.js index 6309f586..194cfa58 100644 --- a/app/js/controllers.js +++ b/app/js/controllers.js @@ -177,7 +177,7 @@ angular.module('myApp.controllers', ['myApp.i18n']) var badPhone = !fullPhone.match(/^[\d\-+\s]+$/) if (!badPhone) { fullPhone = fullPhone.replace(/\D/g, '') - if (fullPhone.length < 7) { + if (fullPhone.length < 7 || fullPhone.length > 15) { badPhone = true } }