| Nikki added a comment. |
I just ran into this problem again and was about to report it, only to find I already did a year ago...
I went hunting for the source of the problem and I think it might be in https://github.com/DataValues/Geo/blob/master/src/Parsers/LatLongParserBase.php#L219. The regex on line 222 (and elsewhere) is case insensitive, so things like "s" are considered valid, but then line 230 only checks for the canonical case when deciding whether to make the value negative. Maybe changing that line to something like if ( in_array( strtolower( $direction ), [ strtolower( $s ), strtolower( $w ) ] ) ) { will fix it?
TASK DETAIL
EMAIL PREFERENCES
To: Nikki
Cc: Izno, Aklapper, Nikki, PokestarFan, Lahi, Gq86, GoranSMilovanovic, QZanden, LawExplorer, Wikidata-bugs, aude, Mbch331
Cc: Izno, Aklapper, Nikki, PokestarFan, Lahi, Gq86, GoranSMilovanovic, QZanden, LawExplorer, Wikidata-bugs, aude, Mbch331
_______________________________________________ Wikidata-bugs mailing list [email protected] https://lists.wikimedia.org/mailman/listinfo/wikidata-bugs
