Skip to content

Commit

Permalink
fix for Greek mobile phones validation. Previous one validated land l…
Browse files Browse the repository at this point in the history
…ine phone numbers as well
  • Loading branch information
nikoskalogridis committed Dec 16, 2015
1 parent 2f6842d commit a08e3f0
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
8 changes: 4 additions & 4 deletions test/validators.js
Original file line number Diff line number Diff line change
Expand Up @@ -1453,13 +1453,13 @@ describe('Validators', function () {
test({
validator: 'isMobilePhone'
, valid: [
'2102323234'
, '+302646041461'
, '+306944848966'
'+306944848966'
, '6944848966'
]
, invalid: [
'120000000'
'2102323234'
, '+302646041461'
, '120000000'
, '20000000000'
, '68129485729'
, '6589394827'
Expand Down
2 changes: 1 addition & 1 deletion validator.js
Original file line number Diff line number Diff line change
Expand Up @@ -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}$/,
Expand Down

0 comments on commit a08e3f0

Please sign in to comment.