Skip to content

Commit

Permalink
Merge pull request #785 from geekguy/master
Browse files Browse the repository at this point in the history
Indian mobile numbers can start with 6 now.
  • Loading branch information
chriso authored Jan 30, 2018
2 parents 0ccb1c7 + f51344f commit ca20e91
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/isMobilePhone.js
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ var phones = {
'en-AU': /^(\+?61|0)4\d{8}$/,
'en-GB': /^(\+?44|0)7\d{9}$/,
'en-HK': /^(\+?852\-?)?[456789]\d{3}\-?\d{4}$/,
'en-IN': /^(\+?91|0)?[789]\d{9}$/,
'en-IN': /^(\+?91|0)?[6789]\d{9}$/,
'en-KE': /^(\+?254|0)?[7]\d{8}$/,
'en-NG': /^(\+?234|0)?[789]\d{9}$/,
'en-NZ': /^(\+?64|0)2\d{7,9}$/,
Expand Down Expand Up @@ -100,4 +100,4 @@ function isMobilePhone(str, locale, options) {
}
throw new Error('Invalid locale \'' + locale + '\'');
}
module.exports = exports['default'];
module.exports = exports['default'];

0 comments on commit ca20e91

Please sign in to comment.