Skip to content

Commit 8afd190

Browse files
authored
Merge branch 'master' into master
2 parents f890d15 + 0024404 commit 8afd190

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ Passing anything other than a string is an error.
6161
- **isBase64(str)** - check if a string is base64 encoded.
6262
- **isBefore(str [, date])** - check if the string is a date that's before the specified date.
6363
- **isBoolean(str)** - check if a string is a boolean.
64-
- **isByteLength(str, options)** - check if the string's length (in bytes) falls in a range.`options` is an object which defaults to `{min:0, max: undefined}`.
64+
- **isByteLength(str, options)** - check if the string's length (in UTF-8 bytes) falls in a range. `options` is an object which defaults to `{min:0, max: undefined}`.
6565
- **isCreditCard(str)** - check if the string is a credit card.
6666
- **isCurrency(str, options)** - check if the string is a valid currency amount. `options` is an object which defaults to `{symbol: '$', require_symbol: false, allow_space_after_symbol: false, symbol_after_digits: false, allow_negatives: true, parens_for_negatives: false, negative_sign_before_digits: false, negative_sign_after_digits: false, allow_negative_sign_placeholder: false, thousands_separator: ',', decimal_separator: '.', allow_space_after_digits: false }`.
6767
- **isDataURI(str)** - check if the string is a [data uri format](https://developer.mozilla.org/en-US/docs/Web/HTTP/data_URIs).

src/lib/isMobilePhone.js

+1
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@ const phones = {
3333
'pt-BR': /^(\+?55|0)\-?[1-9]{2}\-?[2-9]{1}\d{3,4}\-?\d{4}$/,
3434
'pt-PT': /^(\+?351)?9[1236]\d{7}$/,
3535
'ro-RO': /^(\+?4?0)\s?7\d{2}(\/|\s|\.|\-)?\d{3}(\s|\.|\-)?\d{3}$/,
36+
'en-PK': /^((\+92)|(0092))-{0,1}\d{3}-{0,1}\d{7}$|^\d{11}$|^\d{4}-\d{7}$/,
3637
'ru-RU': /^(\+?7|8)?9\d{9}$/,
3738
'sr-RS': /^(\+3816|06)[- \d]{5,9}$/,
3839
'tr-TR': /^(\+?90|0)?5\d{9}$/,

0 commit comments

Comments
 (0)