We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b57fef4 commit c27500bCopy full SHA for c27500b
src/validation/Validator.ts
@@ -374,14 +374,14 @@ export class Validator {
374
* Checks if a given value is a latitude.
375
*/
376
isLatitude(value: unknown): boolean {
377
- return (typeof value === "number" || this.isString(value)) && this.isLatLong(`0,${value}`);
+ return (typeof value === "number" || this.isString(value)) && this.isLatLong(`${value},0`);
378
}
379
380
/**
381
* Checks if a given value is a longitude.
382
383
isLongitude(value: unknown): boolean {
384
- return (typeof value === "number" || this.isString(value)) && this.isLatLong(`${value},0`);
+ return (typeof value === "number" || this.isString(value)) && this.isLatLong(`0,${value}`);
385
386
387
0 commit comments