[openstreetmap/openstreetmap-website] Make email values a link in object detail mode (#1689)
Biswesh Mohapatra
notifications at github.com
Tue Feb 6 20:01:30 UTC 2018
@tomhughes if I got what you were discussing about then I think are talking about validating if a string is most likely to be an actual email or not.
I found out this regex in stackoverflow: /^(([A-Za-z0-9]+_+)|([A-Za-z0-9]+\-+)|([A-Za-z0-9]+\.+)|([A-Za-z0-9]+\++))*[A-Za-z0-9]+@((\w+\-+)|(\w+\.))*\w{1,63}\.[a-zA-Z]{2,6}$/i
Will it help in this case?
--
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/issues/1689#issuecomment-363547092
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/rails-dev/attachments/20180206/cb6ba9f6/attachment.html>
More information about the rails-dev
mailing list