[gnome-maps] place: Allow DMS coordinates without ,
- From: Marcus Lundblad <mlundblad src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-maps] place: Allow DMS coordinates without ,
- Date: Fri, 24 Apr 2020 21:13:01 +0000 (UTC)
commit 3411d440a0f6e4e27100f495a4de841040bb90f7
Author: Marcus Lundblad <ml update uu se>
Date: Fri Apr 24 23:11:12 2020 +0200
place: Allow DMS coordinates without ,
Fixes #262
src/place.js | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/src/place.js b/src/place.js
index 36e5b98f..675e3320 100644
--- a/src/place.js
+++ b/src/place.js
@@ -37,7 +37,7 @@ const DECIMAL_COORDINATES_REGEX = (
// Matches coordinates string in 'Degrees, Minutes, Seconds' format
const DMS_COORDINATES_REGEX = new RegExp(
- /^\s*(\d+)°?\s*(\d+)['′]?\s*(\d+(?:.\d+)?)["″]?\s*(N|S)\s*,/.source
+ /^\s*(\d+)°?\s*(\d+)['′]?\s*(\d+(?:.\d+)?)["″]?\s*(N|S)\s*,?/.source
+ /\s*(\d+)°?\s*(\d+)['′]?\s*(\d+(?:.\d+)?)["″]?\s*(W|E)\s*$/.source,
"i"
);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]