-
-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix parsing of lowercase S/W directions
We were matching the direction case-insensitively in the regex, but then comparing it case-sensitively afterwards, so that lowercase S/W coordinates would not be parsed as S/W and would instead eventually end up being interpreted as unsigned (i. e. N/E). To fix this, it’s sufficient to check if the regex matched that part of the pattern at all or fell back to the empty alternative branch. Credit for investigating the bug goes to Wikidata user Nikki [1] on Phabricator [2]. This is a backport for the 3.0.x line, cherry-picked from 5443722. [1]: https://www.wikidata.org/wiki/User:Nikki [2]: https://phabricator.wikimedia.org/T173026#4465312 Bug: T173026
- Loading branch information
1 parent
1735bdd
commit 49cd65d
Showing
3 changed files
with
13 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters