[openstreetmap/openstreetmap-website] Show mailto: links for an email or emails separated by ; (#2542)
notifications at github.com
Tue Feb 18 10:04:50 UTC 2020
Generally I prefer to avoid adding lots of code, and gigantic regexps count as lots and lots of code!
Ruby has a built-in regexp for email validation, namely `URI::MailTo::EMAIL_REGEXP` which is recommended for most situations. That way, someone else can be in charge of maintaining and debugging the regexp.
I'm not sure if that will work with the semi-colon delineated approach, but it's worth seeing if it can be made to work since I think it's much simpler, easier to read, and less to maintain.
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the rails-dev