lib/linkify: add comma to punctuation in channel regex

This commit is contained in:
Simon Ser 2021-06-09 16:28:07 +02:00
parent 0c0f0ab79e
commit 52ca3bb91c

View File

@ -2,7 +2,7 @@ import { anchorme, html } from "./index.js";
function linkifyChannel(text, transformChannel) {
// Don't match punctuation at the end of the channel name
const channelRegex = /(?:^|\s)(#[^\s]+[^\s.?!():;])/gid;
const channelRegex = /(?:^|\s)(#[^\s]+[^\s.?!():;,])/gid;
var children = [];
var match;