Skip to content

Commit

Permalink
Merge pull request #467 from nikoskalogridis/master
Browse files Browse the repository at this point in the history
fix for Greek mobile phones validation
  • Loading branch information
chriso committed Dec 28, 2015
2 parents 2f6842d + 13420e3 commit 2fcbbdd
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
9 changes: 5 additions & 4 deletions test/validators.js
Original file line number Diff line number Diff line change
Expand Up @@ -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'
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 2fcbbdd

Please sign in to comment.