diff --git a/front-end/components/bloom.mjs b/front-end/components/bloom.mjs index 0b4166c..df6031c 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#[^#\s]+/g, (match) => `${match}` ); } @@ -84,4 +84,4 @@ function _formatTimestamp(timestamp) { } } -export {createBloom}; +export { createBloom };