el regex no era global

This commit is contained in:
2025-12-26 19:12:41 -03:00
parent 80c4fafa4b
commit 7972f034f8

View File

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