[openstreetmap/openstreetmap-website] Add parsing of bare #zoom/lat/lon style hashes (#2098)

JesseWeinstein notifications at github.com
Thu Jan 3 16:30:19 UTC 2019


Thank you both for your feedback. The need for both PRs is because it is courteous to avoid barfing on common input (not an "endless list of formats"), and that applies to both sides. 

This is not about *generating* links (for which, I agree, it's trivial to just generate the canonical format), but about interactive use by humans, who often fail to remember fine distinctions (like whether or not a four character prefix is required in a particular context). 

I do not intend to be implying that you "should be expected" to do this, or anything else -- merely to point out that, should you wish to respond more kindly to users making this common mistake, here is the code necessary to do so.

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/openstreetmap/openstreetmap-website/pull/2098#issuecomment-451197397
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/rails-dev/attachments/20190103/8a1a43c1/attachment.html>


More information about the rails-dev mailing list