Skip to content

Commit 6e23933

Browse files
committed
4.7.0
1 parent 568328d commit 6e23933

File tree

4 files changed

+6
-5
lines changed

4 files changed

+6
-5
lines changed

CHANGELOG.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
1-
#### HEAD
1+
#### 4.7.0
22

33
- Print a deprecation warning if validator input is not a string
4-
([1f67e1e](https://github.com/chriso/validator.js/commit/1f67e1e15198c0ae735151290dc8dc2bf14da254))
4+
([1f67e1e](https://github.com/chriso/validator.js/commit/1f67e1e15198c0ae735151290dc8dc2bf14da254)).
5+
Note that this will be an error in v5.
56
- Added a German locale to `isMobilePhone()`, `isAlpha()` and `isAlphanumeric()`
67
([#477](https://github.com/chriso/validator.js/pull/477))
78
- Added a Finnish locale to `isMobilePhone()`

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{ "name": "validator",
22
"description": "String validation and sanitization",
3-
"version": "4.6.1",
3+
"version": "4.7.0",
44
"homepage": "http://github.com/chriso/validator.js",
55
"keywords": [
66
"validator", "validation", "validate", "sanitization",

validator.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@
3535

3636
'use strict';
3737

38-
validator = { version: '4.6.1', coerce: true };
38+
validator = { version: '4.7.0', coerce: true };
3939

4040
var emailUserPart = /^[a-z\d!#\$%&'\*\+\-\/=\?\^_`{\|}~]+$/i;
4141
var quotedEmailUser = /^([\s\x01-\x08\x0b\x0c\x0e-\x1f\x7f\x21\x23-\x5b\x5d-\x7e]|(\\[\x01-\x09\x0b\x0c\x0d-\x7f]))*$/i;

0 commit comments

Comments
 (0)