From d9d15620ee9dc80045c732d913c6fa6cec53ed23 Mon Sep 17 00:00:00 2001 From: marc tobias Date: Sun, 11 Dec 2022 03:39:10 +0100 Subject: [PATCH] reverse query form: also auto-split by encoded comma --- src/components/SearchSectionReverse.svelte | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/SearchSectionReverse.svelte b/src/components/SearchSectionReverse.svelte index e8f1a47..2f53f39 100644 --- a/src/components/SearchSectionReverse.svelte +++ b/src/components/SearchSectionReverse.svelte @@ -29,7 +29,7 @@ // common mistake is to copy&paste latitude and longitude into the 'lat' search box function maybeSplitLatitude(e) { - var coords_split = e.target.value.split(','); + var coords_split = e.target.value.split(/,|%2C/); if (coords_split.length === 2) { document.querySelector('input[name=lat]').value = L.Util.trim(coords_split[0]); document.querySelector('input[name=lon]').value = L.Util.trim(coords_split[1]); -- 2.39.5