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
+10-7Lines changed: 10 additions & 7 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -837,6 +837,9 @@ validator.isISIN(str); // Checks if the string is an ISIN (stock/security identi
837
837
validator.isISO8601(str); // Checks if the string is a valid ISO 8601 date.
838
838
validator.isJSON(str); // Checks if the string is valid JSON (note: uses JSON.parse).
839
839
validator.isLowercase(str); // Checks if the string is lowercase.
840
+
validator.isLatLong(str); // Checks if the string is lowercase.
841
+
validator.isLatitude(str); // Checks if the string is lowercase.
842
+
validator.isLongtitude(str); // Checks if the string is lowercase.
840
843
validator.isMobilePhone(str, locale); // Checks if the string is a mobile phone number.
841
844
validator.isISO31661Alpha2(str); // Check if the string is a valid ISO 3166-1 alpha-2
842
845
validator.isISO31661Alpha3(str); // Check if the string is a valid ISO 3166-1 alpha-3
@@ -922,13 +925,13 @@ validator.isInstance(value, target); // Checks value is an instance of the targe
922
925
| `@IsISIN()` | Checks if the string is an ISIN (stock/security identifier). |
923
926
| `@IsISO8601()` | Checks if the string is a valid ISO 8601 date. |
924
927
| `@IsJSON()` | Checks if the string is valid JSON. |
925
-
| `@IsLowercase()` | Checks if the string is lowercase.
926
-
| `@IsLatLong()` | check if the string is a valid latitude-longitude coordinate in the format lat,long
927
-
| `@IsLatitude()` | check if the string or number is a valid latitude coordinate
928
-
| `@IsLongitude()` | check if the string or number is a valid longitude coordinate
929
-
| `@IsMobilePhone(locale:string)` | Checks if the string is a mobile phone number. |
930
-
| `@IsISO31661Alpha2()` | Check if the string is a valid [ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) officially assigned country code. |
931
-
| `@IsISO31661Alpha3()` | Check if the string is a valid [ISO 3166-1 alpha-3](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-3) officially assigned country code. |
928
+
| `@IsLowercase()` | Checks if the string is lowercase. |
929
+
| `@IsLatLong()` | Checks if the string is a valid latitude-longitude coordinate in the format lat,long |
930
+
| `@IsLatitude()`| Checks if the string or number is a valid latitude coordinate |
931
+
| `@IsLongitude()`| Checks if the string or number is a valid longitude coordinate |
932
+
| `@IsMobilePhone(locale:string)` | Checks if the string is a mobile phone number. |
933
+
| `@IsISO31661Alpha2()` | Checks if the string is a valid [ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) officially assigned country code. |
934
+
| `@IsISO31661Alpha3()` | Checks if the string is a valid [ISO 3166-1 alpha-3](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-3) officially assigned country code. |
932
935
| `@IsPhoneNumber(region:string)` | Checks if the string is a valid phone number. "region" accepts 2 characters uppercase country code (e.g. DE, US, CH).If users must enter the intl. prefix (e.g. +41), then you may pass "ZZ" or null as region. See [google-libphonenumber, metadata.js:countryCodeToRegionCodeMap on github](https://github.com/ruimarinho/google-libphonenumber/blob/1e46138878cff479aafe2ce62175c6c49cb58720/src/metadata.js#L33) |
933
936
| `@IsMongoId()` | Checks if the string is a valid hex-encoded representation of a MongoDB ObjectId. |
934
937
| `@IsMultibyte()` | Checks if the string contains one or more multibyte chars. |
0 commit comments