[openstreetmap/openstreetmap-website] Fix issue #6614: Support spaces in @mentions using quotes (PR #6616)
Anshul Zilpe
notifications at github.com
Tue Dec 16 11:33:35 UTC 2025
aNsHuL5217 left a comment (openstreetmap/openstreetmap-website#6616)
Thanks for pointing that out @hlfan ! I realized the original regex didn't account for names containing quotes like "Yo".
I've updated the logic to support single quotes as wrappers, so you can now tag that user simply as @'Yo'.
This update also handles cases where Markdown converts standard quotes into "smart" curly quotes, preventing broken links. I've added a test case to cover this scenario as well.
--
Reply to this email directly or view it on GitHub:
https://github.com/openstreetmap/openstreetmap-website/pull/6616#issuecomment-3660084162
You are receiving this because you are subscribed to this thread.
Message ID: <openstreetmap/openstreetmap-website/pull/6616/c3660084162 at github.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/rails-dev/attachments/20251216/f5556695/attachment.htm>
More information about the rails-dev
mailing list