Skip to content

Commit

Permalink
Adding extra countries
Browse files Browse the repository at this point in the history
  • Loading branch information
RahulSingh044 committed Sep 30, 2024
1 parent ff56dcf commit 0a83a58
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/lib/isMobilePhone.js
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,8 @@ const phones = {
'de-DE': /^((\+49|0)1)(5[0-25-9]\d|6([23]|0\d?)|7([0-57-9]|6\d))\d{7,9}$/,
'de-AT': /^(\+43|0)\d{1,4}\d{3,12}$/,
'de-CH': /^(\+41|0)([1-9])\d{1,9}$/,
'de-De': /^((\+49|0)1)(5[0-25-9]\d|6([23]|0\d?)|7([0-57-9]|6\d))\d{7,9}$/,
'de-LI':/^(\+423)?[6-9]\d{7}$/,

Check failure on line 34 in src/lib/isMobilePhone.js

View workflow job for this annotation

GitHub Actions / Run tests on Node.js 20

Missing space before value for key 'de-LI'

Check failure on line 34 in src/lib/isMobilePhone.js

View workflow job for this annotation

GitHub Actions / Run tests on Node.js 18

Missing space before value for key 'de-LI'

Check failure on line 34 in src/lib/isMobilePhone.js

View workflow job for this annotation

GitHub Actions / Run tests on Node.js 16

Missing space before value for key 'de-LI'

Check failure on line 34 in src/lib/isMobilePhone.js

View workflow job for this annotation

GitHub Actions / Run tests on Node.js 14

Missing space before value for key 'de-LI'

Check failure on line 34 in src/lib/isMobilePhone.js

View workflow job for this annotation

GitHub Actions / Run tests on Node.js 12

Missing space before value for key 'de-LI'

Check failure on line 34 in src/lib/isMobilePhone.js

View workflow job for this annotation

GitHub Actions / Run tests on Node.js 10

Missing space before value for key 'de-LI'

Check failure on line 34 in src/lib/isMobilePhone.js

View workflow job for this annotation

GitHub Actions / Run tests on Node.js 8

Missing space before value for key 'de-LI'
'de-LU': /^(\+352)?((6\d1)\d{6})$/,
'dv-MV': /^(\+?960)?(7[2-9]|9[1-9])\d{5}$/,
'el-GR': /^(\+?30|0)?6(8[5-9]|9(?![26])[0-9])\d{7}$/,
Expand Down Expand Up @@ -66,9 +68,11 @@ const phones = {
'en-RW': /^(\+?250|0)?[7]\d{8}$/,
'en-SG': /^(\+65)?[3689]\d{7}$/,
'en-SL': /^(\+?232|0)\d{8}$/,
'en-SZ': /^(\+268)?\d{3} \d{4}$/,
'en-TZ': /^(\+?255|0)?[67]\d{8}$/,
'en-UG': /^(\+?256|0)?[7]\d{8}$/,
'en-US': /^((\+1|1)?( |-)?)?(\([2-9][0-9]{2}\)|[2-9][0-9]{2})( |-)?([2-9][0-9]{2}( |-)?[0-9]{4})$/,
'en-VU': /^(\+678)?[5]\d{5}$/,
'en-ZA': /^(\+?27|0)\d{9}$/,
'en-ZM': /^(\+?26)?09[567]\d{7}$/,
'en-ZW': /^(\+263)[0-9]{9}$/,
Expand Down Expand Up @@ -100,11 +104,13 @@ const phones = {
'fr-BF': /^(\+226|0)[67]\d{7}$/,
'fr-BJ': /^(\+229)\d{8}$/,
'fr-CD': /^(\+?243|0)?(8|9)\d{8}$/,
'fr-CI': /^(\+225)?(0[1-9])\d{7}$/,
'fr-CM': /^(\+?237)6[0-9]{8}$/,
'fr-FR': /^(\+?33|0)[67]\d{8}$/,
'fr-GF': /^(\+?594|0|00594)[67]\d{8}$/,
'fr-GP': /^(\+?590|0|00590)[67]\d{8}$/,
'fr-MQ': /^(\+?596|0|00596)[67]\d{8}$/,
'fr-MC': /^(\+377)?[6]\d{7}$/,
'fr-PF': /^(\+?689)?8[789]\d{6}$/,
'fr-RE': /^(\+?262|0|00262)[67]\d{8}$/,
'fr-WF': /^(\+681)?\d{6}$/,
Expand Down

0 comments on commit 0a83a58

Please sign in to comment.