Page MenuHomePhabricator

Make last character optional in globe/geo/lat-long parsers
Open, LowPublic

Description

One format that's currently accepted is:
1°23'45.6789" 1°23'45.6789"

I propose to also accept partly incomplete inputs for convenience:
1°23'45.6789 1°23'45.6789
1°23'45 1°23'45
1°23 1°23
1°23.45 1°23.45
All these can only have a single meaning, as far as I'm aware of.

Not sure about these:
1°23'456789 1°23'456789
1°2345 1°2345
The problem here is that these can have several meanings.


Version: master
Severity: normal
Whiteboard: u=dev c=backend p=0

Details

Reference
bz66651

Event Timeline

bzimport raised the priority of this task from to Low.Nov 22 2014, 3:13 AM
bzimport set Reference to bz66651.
bzimport added a subscriber: Unknown Object (MLST).
Lydia_Pintscher removed a subscriber: Unknown Object (MLST).
Lydia_Pintscher removed a subscriber: Unknown Object (MLST).

I'm a big fan of parsers that do their very best to figure out what the user means. The examples provided here and not unambiguous, as far as I can tell, and can not lead to problematic edge cases. Personally I would be willing to work on this any time when approved by PM.