@tmlmobilidade/utils 20250822.1819.59 → 20250822.1829.15
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -32,7 +32,7 @@ export function isValidCoordinatePair(lat, lng) {
|
|
|
32
32
|
* @returns The parsed coordinates as an object, or null if the input is invalid.
|
|
33
33
|
*/
|
|
34
34
|
export const parseCoordinateString = (input) => {
|
|
35
|
-
const regex = /^\s*(
|
|
35
|
+
const regex = /^\s*([+-]?\d+(?:\.\d+)?)\s*(?:,|\s)\s*([+-]?\d+(?:\.\d+)?)\s*$/;
|
|
36
36
|
const match = input.match(regex);
|
|
37
37
|
if (!match)
|
|
38
38
|
return null;
|
package/package.json
CHANGED