diff options
-rw-r--r-- | server.js | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -742,7 +742,7 @@ function show_forum_page(req, res, page) { function linkify_post(text) { text = text.replace(/&/g, "&").replace(/</g, "<").replace(/>/g, ">"); - text = text.replace(/https?:\/\/\S+/, (match) => { + text = text.replace(/https?:\/\/\S+/g, (match) => { if (match.endsWith(".jpg") || match.endsWith(".png") || match.endsWith(".svg")) return `<a href="${match}"><img src="${match}"></a>`; return `<a href="${match}">${match}</a>`; |