[openstreetmap/openstreetmap-website] Truncate rich text description on word boundaries if possible (PR #6071)
Anton Khorev
notifications at github.com
Wed Jun 4 13:10:15 UTC 2025
AntonKhorev left a comment (openstreetmap/openstreetmap-website#6071)
Splitting on `\b` requires agreeing with the regexp rules of `\b` on what a word is. For example "-" is not a word character. "abc-def" is two words with two boundaries inside: "abc" + "-def" and "abc-" + "def".
--
Reply to this email directly or view it on GitHub:
https://github.com/openstreetmap/openstreetmap-website/pull/6071#issuecomment-2939983366
You are receiving this because you are subscribed to this thread.
Message ID: <openstreetmap/openstreetmap-website/pull/6071/c2939983366 at github.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/rails-dev/attachments/20250604/fa54c4bb/attachment.htm>
More information about the rails-dev
mailing list