diff --git a/front-end/components/bloom.mjs b/front-end/components/bloom.mjs index 0b4166c..1567b47 100644 --- a/front-end/components/bloom.mjs +++ b/front-end/components/bloom.mjs @@ -28,7 +28,7 @@ const createBloom = (template, bloom) => { bloomTimeLink.setAttribute("href", `/bloom/${bloom.id}`); bloomContent.replaceChildren( ...bloomParser.parseFromString(_formatHashtags(bloom.content), "text/html") - .body.childNodes + .body.childNodes, ); return bloomFrag; @@ -37,8 +37,8 @@ const createBloom = (template, bloom) => { function _formatHashtags(text) { if (!text) return text; return text.replace( - /\B#[^#]+/g, - (match) => `${match}` + /\B#\w+/g, + (match) => `${match}`, ); } @@ -84,4 +84,4 @@ function _formatTimestamp(timestamp) { } } -export {createBloom}; +export { createBloom }; diff --git a/front-end/index.html b/front-end/index.html index 89d6b13..78fc6fd 100644 --- a/front-end/index.html +++ b/front-end/index.html @@ -1,21 +1,16 @@ - + Purple Forest - +

- Purple Forest + Purple Forest PurpleForest

@@ -189,8 +184,7 @@

Create your account

Who to follow

- +
@@ -236,7 +230,9 @@

Share a Bloom

Username - +
@@ -256,6 +252,6 @@

Share a Bloom

Please enable JavaScript in your browser.

- +