Skip to content

Commit 1936c5c

Browse files
committed
Patch #197 Lat / Long matches incorrectly
#197 (comment)
1 parent 6162ace commit 1936c5c

File tree

1 file changed

+10
-3
lines changed

1 file changed

+10
-3
lines changed

pywhat/Data/regex.json

+10-3
Original file line numberDiff line numberDiff line change
@@ -1477,7 +1477,7 @@
14771477
},
14781478
{
14791479
"Name": "Latitude & Longitude Coordinates",
1480-
"Regex": "(?i)^((?:(?:N|W|S|E)\\s?\\d+\\s?\\u00B0?\\s?\\d+\\.?\\d*\\s?\\'?\\s?\\d*\\.?\\,?\\d*?\"?\\s?){1,2}|(?:\\d+\\s?\\u00B0\\s?\\d+\\s?\\'\\s?\\d+\\.?\\,?\\d{0,}?\"\\s?(?:N|W|S|E)\\s?){1,2}|(?:[-+]?(?:[0-8]?\\d+\\.\\d{4,}|90(?:\\.0+)?),\\s*[-+]?(?:180(?:\\.0+)?|(?:(?:1[0-7]\\d)|(?:[1-9]?\\d))(?:\\.\\d+)?)))$",
1480+
"Regex": "(?i)^((?:(?:N|W|S|E)\\s?\\d+\\s?\\u00B0\\s?\\d+\\.?\\d*\\s?\\'?\\s?\\d*\\.?\\,?\\d*?\\\"?\\s?){1,2}|(?:\\d+\\s?\\u00B0\\s?\\d+\\s?\\'?\\s?\\d+\\.?\\,?\\d{0,}?\\\"?\\s?(?:N|W|S|E)\\s?){1,2}|(?:[-+]?(?:[0-8]?\\d+\\.\\d{4,}|90(?:\\.0+)?),\\s*[-+]?(?:180(?:\\.0+)?|(?:(?:1[0-7]\\d)|(?:[1-9]?\\d))(?:\\.\\d+)?))|(?:@\\d+\\.\\d{4,},\\d+.\\d{4,},\\d+z))$",
14811481
"plural_name": true,
14821482
"Description": null,
14831483
"Rarity": 0.7,
@@ -1494,9 +1494,16 @@
14941494
"77\u00b0 30' 29.9988\" N",
14951495
"N 32\u00b0 53.733 W 096\u00b0 48.358",
14961496
"41\u00b024'12.2\" N 2\u00b010'26.5\" E",
1497-
"40.741895,-73.989308"
1497+
"40.741895,-73.989308",
1498+
"@13.923404,101.3395163,17z"
14981499
],
1499-
"Invalid": []
1500+
"Invalid": [
1501+
"123N",
1502+
"E123",
1503+
"e12.23123",
1504+
"n12.1211,e1.12331",
1505+
"123.34,78.8"
1506+
]
15001507
}
15011508
},
15021509
{

0 commit comments

Comments
 (0)