diff --git a/CHANGELOG.md b/CHANGELOG.md index 45ed4a050..80b9e7d48 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,6 +2,8 @@ - Added an option to `isMobilePhone` to require a country code ([#769](https://github.com/chriso/validator.js/pull/769)) +- New and improved locales + ([#785](https://github.com/chriso/validator.js/pull/785)) #### 9.3.0 diff --git a/lib/isMobilePhone.js b/lib/isMobilePhone.js index 21d87e49e..6f2347b6c 100644 --- a/lib/isMobilePhone.js +++ b/lib/isMobilePhone.js @@ -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)?[6789]\d{9}$/, + 'en-IN': /^(\+?91|0)?[789]\d{9}$/, 'en-KE': /^(\+?254|0)?[7]\d{8}$/, 'en-NG': /^(\+?234|0)?[789]\d{9}$/, 'en-NZ': /^(\+?64|0)2\d{7,9}$/, @@ -100,4 +100,4 @@ function isMobilePhone(str, locale, options) { } throw new Error('Invalid locale \'' + locale + '\''); } -module.exports = exports['default']; +module.exports = exports['default']; \ No newline at end of file