Vizzuality/landgriffon

View on GitHub
client/src/utils/coordinates.ts

Summary

Maintainability
A
0 mins
Test Coverage
export const isCoordinates = (coordinates: string) =>
  /^(-?\d+(\.\d+)?),\s*(-?\d+(\.\d+)?)$/.test(coordinates);