From 5f0674b97726f6935af14d6908bcf52843af4202 Mon Sep 17 00:00:00 2001 From: Trivernis Date: Wed, 22 May 2019 17:11:37 +0200 Subject: [PATCH] Chat parsing fix - fixed link parsing of uncomplete links --- routes/bingo.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/routes/bingo.js b/routes/bingo.js index 192a39b..2b9a659 100644 --- a/routes/bingo.js +++ b/routes/bingo.js @@ -1386,7 +1386,7 @@ function preMarkdownParse(message) { if (imgGroups && imgGroups[1] && imageExtensions.includes(imgGroups[1])) message = message.replace(link, `![${linkGroups[1]}](${link})`); - else + else if (linkGroups && linkGroups[1]) message = message.replace(link, `[${linkGroups[1]}](${link})`); }