Chat parsing fix

- fixed link parsing of uncomplete links
pull/24/head
Trivernis 6 years ago
parent c02f7c145d
commit 5f0674b977

@ -1386,7 +1386,7 @@ function preMarkdownParse(message) {
if (imgGroups && imgGroups[1] && imageExtensions.includes(imgGroups[1])) if (imgGroups && imgGroups[1] && imageExtensions.includes(imgGroups[1]))
message = message.replace(link, `![${linkGroups[1]}](${link})`); message = message.replace(link, `![${linkGroups[1]}](${link})`);
else else if (linkGroups && linkGroups[1])
message = message.replace(link, `[${linkGroups[1]}](${link})`); message = message.replace(link, `[${linkGroups[1]}](${link})`);
} }

Loading…
Cancel
Save