Skip to content

Commit

Permalink
update regexp
Browse files Browse the repository at this point in the history
  • Loading branch information
Andrey Kvashuk committed Apr 1, 2022
1 parent 70b028e commit b415ade
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/lib/isMobilePhone.js
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ const phones = {
'it-IT': /^(\+?39)?\s?3\d{2} ?\d{6,7}$/,
'it-SM': /^((\+378)|(0549)|(\+390549)|(\+3780549))?6\d{5,9}$/,
'ja-JP': /^(\+81[ \-]?(\(0\))?|0)[6789]0[ \-]?\d{4}[ \-]?\d{4}$/,
'ka-GE': /^(\+?995)?\d{9}$/,
'ka-GE': /^(\+?995)?(79\d{7}|5\d{8})$/,
'kk-KZ': /^(\+?7|8)?7\d{9}$/,
'kl-GL': /^(\+?299)?\s?\d{2}\s?\d{2}\s?\d{2}$/,
'ko-KR': /^((\+?82)[ \-]?)?0?1([0|1|6|7|8|9]{1})[ \-]?\d{3,4}[ \-]?\d{4}$/,
Expand Down
1 change: 1 addition & 0 deletions test/validators.js
Original file line number Diff line number Diff line change
Expand Up @@ -7081,6 +7081,7 @@ describe('Validators', () => {
'+99550001111',
'+9957997665250',
'+9959997665251',
'+995780011111',
'20000000000',
'68129485729',
'6589394827',
Expand Down

0 comments on commit b415ade

Please sign in to comment.