[openstreetmap/openstreetmap-website] Use end-of-string termination check when validating urls (#2570)

Tom Hughes notifications at github.com
Thu Mar 26 22:43:38 UTC 2020


Hmm it does actually still match but only because the whole thing is massively broken and winds up matching the whole path against the capture that is only really intended to capture the host, as this [example](https://regex101.com/r/KyhJWj/1) shows.

-- 
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/2570#issuecomment-604724990
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/rails-dev/attachments/20200326/4ea100c3/attachment.htm>


More information about the rails-dev mailing list