Merge pull request #52 from emailerfacu-spec/dev

el regex no era global
This commit is contained in:
emailerfacu-spec
2025-12-26 19:13:00 -03:00
committed by GitHub

View File

@@ -56,7 +56,7 @@
t = post.content.replaceAll('\n', '<br>'); t = post.content.replaceAll('\n', '<br>');
t = t.replaceAll( t = t.replaceAll(
/#\p{L}*/u, /#\p{L}*/gu,
(match) => (match) =>
`<a class="hover:text-blue-200 text-blue-400" href="/htag/${match.replace('#', '')}">${match}</a>` `<a class="hover:text-blue-200 text-blue-400" href="/htag/${match.replace('#', '')}">${match}</a>`
); );