lib/linkify: add comma to punctuation in channel regex
This commit is contained in:
@@ -2,7 +2,7 @@ import { anchorme, html } from "./index.js";
|
|||||||
|
|
||||||
function linkifyChannel(text, transformChannel) {
|
function linkifyChannel(text, transformChannel) {
|
||||||
// Don't match punctuation at the end of the channel name
|
// 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 children = [];
|
||||||
var match;
|
var match;
|
||||||
|
|||||||
Reference in New Issue
Block a user