Skip to content

Commit

Permalink
added + to be optional when country code is entered
Browse files Browse the repository at this point in the history
  • Loading branch information
nikoskalogridis committed Dec 16, 2015
1 parent a08e3f0 commit 13420e3
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions test/validators.js
Original file line number Diff line number Diff line change
Expand Up @@ -1455,6 +1455,7 @@ describe('Validators', function () {
, valid: [
'+306944848966'
, '6944848966'
, '306944848966'
]
, invalid: [
'2102323234'
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)?(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 13420e3

Please sign in to comment.