Skip to content

Commit 47172f5

Browse files
committed
chore: update formatting
1 parent 3fd15c4 commit 47172f5

File tree

2 files changed

+10
-8
lines changed

2 files changed

+10
-8
lines changed

README.md

Lines changed: 10 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -837,6 +837,9 @@ validator.isISIN(str); // Checks if the string is an ISIN (stock/security identi
837837
validator.isISO8601(str); // Checks if the string is a valid ISO 8601 date.
838838
validator.isJSON(str); // Checks if the string is valid JSON (note: uses JSON.parse).
839839
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.
840843
validator.isMobilePhone(str, locale); // Checks if the string is a mobile phone number.
841844
validator.isISO31661Alpha2(str); // Check if the string is a valid ISO 3166-1 alpha-2
842845
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
922925
| `@IsISIN()` | Checks if the string is an ISIN (stock/security identifier). |
923926
| `@IsISO8601()` | Checks if the string is a valid ISO 8601 date. |
924927
| `@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. |
932935
| `@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) |
933936
| `@IsMongoId()` | Checks if the string is a valid hex-encoded representation of a MongoDB ObjectId. |
934937
| `@IsMultibyte()` | Checks if the string contains one or more multibyte chars. |

src/validation/Validator.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -343,7 +343,6 @@ export class Validator {
343343
* Checks if a given value is a latitude.
344344
*/
345345
isLatLong(value: any): boolean {
346-
347346
return this.validatorJs.isLatLong(value);
348347
}
349348

0 commit comments

Comments
 (0)