diff --git a/test/validators.js b/test/validators.js index 51a35b7f8..4bed78e41 100644 --- a/test/validators.js +++ b/test/validators.js @@ -1453,13 +1453,14 @@ describe('Validators', function () { test({ validator: 'isMobilePhone' , valid: [ - '2102323234' - , '+302646041461' - , '+306944848966' + '+306944848966' , '6944848966' + , '306944848966' ] , invalid: [ - '120000000' + '2102323234' + , '+302646041461' + , '120000000' , '20000000000' , '68129485729' , '6589394827' diff --git a/validator.js b/validator.js index 2e3b2ed08..1a030172b 100644 --- a/validator.js +++ b/validator.js @@ -90,7 +90,7 @@ 'en-HK': /^(\+?852\-?)?[569]\d{3}\-?\d{4}$/, 'fr-FR': /^(\+?33|0)[67]\d{8}$/, 'pt-PT': /^(\+351)?9[1236]\d{7}$/, - 'el-GR': /^(\+30)?((2\d{9})|(69\d{8}))$/, + 'el-GR': /^(\+?30)?(69\d{8})$/, 'en-GB': /^(\+?44|0)7\d{9}$/, 'en-US': /^(\+?1)?[2-9]\d{2}[2-9](?!11)\d{6}$/, 'en-ZM': /^(\+26)?09[567]\d{7}$/,