From 2eba78ca2b7df7496adc9fe206a3a05cc683a5ff Mon Sep 17 00:00:00 2001 From: iswat Date: Thu, 11 Jun 2026 15:55:47 +0100 Subject: [PATCH] fix(bloom): tighten hashtag regex to only word characters Restrict hashtag parsing in bloom.mjs from /\B#[^#]+/g to /\B#[\w]+/g so hashtags include only letters/digits/underscore and exclude punctuation or spaces. --- front-end/components/bloom.mjs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/front-end/components/bloom.mjs b/front-end/components/bloom.mjs index 0b4166c3..eb250c5a 100644 --- a/front-end/components/bloom.mjs +++ b/front-end/components/bloom.mjs @@ -37,7 +37,7 @@ const createBloom = (template, bloom) => { function _formatHashtags(text) { if (!text) return text; return text.replace( - /\B#[^#]+/g, + /\B#[\w]+/g, (match) => `${match}` ); }