Skip to content

Commit da8afcb

Browse files
committed
Additional stuff for #540
1 parent 4dc06d4 commit da8afcb

File tree

4 files changed

+8
-1
lines changed

4 files changed

+8
-1
lines changed

CHANGELOG.md

+5
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1+
#### HEAD
2+
3+
- Added an Algerian locale to `isMobilePhone()`
4+
([#540](https://github.com/chriso/validator.js/pull/540))
5+
16
#### 5.4.0
27

38
- Accept Union Pay credit cards in `isCreditCard()`

lib/isMobilePhone.js

+1
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { de
1313

1414
/* eslint-disable max-len */
1515
var phones = {
16+
'ar-DZ': /^(\+?213|0)(5|6|7)\d{8}$/,
1617
'ar-SY': /^(!?(\+?963)|0)?9\d{8}$/,
1718
'en-US': /^(\+?1)?[2-9]\d{2}[2-9](?!11)\d{6}$/,
1819
'cs-CZ': /^(\+?420)? ?[1-9][0-9]{2} ?[0-9]{3} ?[0-9]{3}$/,

validator.js

+1
Original file line numberDiff line numberDiff line change
@@ -860,6 +860,7 @@
860860

861861
/* eslint-disable max-len */
862862
var phones = {
863+
'ar-DZ': /^(\+?213|0)(5|6|7)\d{8}$/,
863864
'ar-SY': /^(!?(\+?963)|0)?9\d{8}$/,
864865
'en-US': /^(\+?1)?[2-9]\d{2}[2-9](?!11)\d{6}$/,
865866
'cs-CZ': /^(\+?420)? ?[1-9][0-9]{2} ?[0-9]{3} ?[0-9]{3}$/,

validator.min.js

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)