From 3589f4487e52c234728700fe93eff7f31855a482 Mon Sep 17 00:00:00 2001 From: Alaa Date: Thu, 16 Oct 2025 14:51:44 +0100 Subject: [PATCH] Fix hashtag parsing to handle hashtags with spaces --- front-end/components/bloom.mjs | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/front-end/components/bloom.mjs b/front-end/components/bloom.mjs index 0b4166c..59a18a2 100644 --- a/front-end/components/bloom.mjs +++ b/front-end/components/bloom.mjs @@ -37,7 +37,8 @@ const createBloom = (template, bloom) => { function _formatHashtags(text) { if (!text) return text; return text.replace( - /\B#[^#]+/g, + /\B#\w+/g, + // /\B#[^#]+/g, (match) => `${match}` ); } @@ -84,4 +85,4 @@ function _formatTimestamp(timestamp) { } } -export {createBloom}; +export { createBloom };