From adaa8a8483c382b761f36a7d0d3758313dc21243 Mon Sep 17 00:00:00 2001 From: Sara Tahir Date: Wed, 4 Feb 2026 19:39:27 +0000 Subject: [PATCH] Fix hashtag formatting bug where extra words were included in the link --- front-end/components/bloom.mjs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/front-end/components/bloom.mjs b/front-end/components/bloom.mjs index 0b4166c..bcffb41 100644 --- a/front-end/components/bloom.mjs +++ b/front-end/components/bloom.mjs @@ -36,12 +36,14 @@ const createBloom = (template, bloom) => { function _formatHashtags(text) { if (!text) return text; + return text.replace( - /\B#[^#]+/g, + /\B#[a-zA-Z0-9_]+/g, (match) => `${match}` ); } + function _formatTimestamp(timestamp) { if (!timestamp) return "";