You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+3-3Lines changed: 3 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -836,7 +836,7 @@ validator.isIP(str, version); // Checks if the string is an IP (version 4 or 6).
836
836
validator.isPort(str); // Check if the string is a valid port number.
837
837
validator.isISBN(str, version); // Checks if the string is an ISBN (version 10 or 13).
838
838
validator.isISIN(str); // Checks if the string is an ISIN (stock/security identifier).
839
-
validator.isISO8601(str); // Checks if the string is a valid ISO 8601 date.
839
+
validator.isISO8601(str, options); // Checks if the string is a valid ISO 8601 date. Use the option strict = true for additional checks for a valid date, e.g. invalidates dates like 2019-02-29.
840
840
validator.isJSON(str); // Checks if the string is valid JSON (note: uses JSON.parse).
841
841
validator.isJWT(str) // Checks if the string is valid JWT.
842
842
validator.isObject(object); // Checks if the object is valid Object (null, functions, arrays will return false)
@@ -927,12 +927,12 @@ validator.isInstance(value, target); // Checks value is an instance of the targe
927
927
| `@IsVariableWidth()` | Checks if the string contains a mixture of full and half-width chars. |
928
928
| `@IsHexColor()` | Checks if the string is a hexadecimal color. |
929
929
| `@IsHexadecimal()` | Checks if the string is a hexadecimal number. |
930
-
| `@IsMACAddress()` | Checks if the string is a MAC Address. |
930
+
| `@IsMACAddress()`| Checks if the string is a MAC Address. |
931
931
| `@IsIP(version?:"4"\|"6")` | Checks if the string is an IP (version 4 or 6). |
932
932
| `@IsPort()` | Check if the string is a valid port number. |
933
933
| `@IsISBN(version?:"10"\|"13")` | Checks if the string is an ISBN (version 10 or 13). |
934
934
| `@IsISIN()` | Checks if the string is an ISIN (stock/security identifier). |
935
-
| `@IsISO8601()` | Checks if the string is a valid ISO 8601 date. |
935
+
| `@IsISO8601(options?:IsISO8601Options)`| Checks if the string is a valid ISO 8601 date. Use the option strict = true for additional checks for a valid date, e.g. invalidates dates like 2019-02-29. |
936
936
| `@IsJSON()` | Checks if the string is valid JSON. |
937
937
| `@IsJWT()` | Checks if the string is valid JWT. |
938
938
| `@IsObject()` | Checks if the object is valid Object (null, functions, arrays will return false). |
@@ -908,14 +908,15 @@ export function IsISIN(validationOptions?: ValidationOptions) {
908
908
}
909
909
910
910
/**
911
-
* Checks if the string is a valid ISO 8601 date.
911
+
* Checks if the string is a valid ISO 8601 date. Use the option strict = true for additional checks for a valid date, e.g. invalidates dates like 2019-02-29.
0 commit comments