From bc1bca070ae9574f7d557f6681914f1d6cc67a80 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rich=C3=A1rd=20K=C5=91szegi?= Date: Thu, 21 Nov 2024 11:12:29 +0100 Subject: [PATCH] debug client: simplify location parser coordinate format --- client/src/util/locationConverter.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/client/src/util/locationConverter.ts b/client/src/util/locationConverter.ts index bb9c8a5b01d..952a36a1dc4 100644 --- a/client/src/util/locationConverter.ts +++ b/client/src/util/locationConverter.ts @@ -3,7 +3,7 @@ import { Location } from '../gql/graphql.ts'; const DOUBLE_PATTERN = '-{0,1}\\d+(\\.\\d+){0,1}'; -const LAT_LON_PATTERN = '(' + DOUBLE_PATTERN + ')(\\s*,\\s*|\\s+)(' + DOUBLE_PATTERN + ')'; +const LAT_LON_PATTERN = '(' + DOUBLE_PATTERN + ')(\\s+)(' + DOUBLE_PATTERN + ')'; export function parseLocation(value: string): Location | null { const latLonMatch = value.match(LAT_LON_PATTERN);