forked from CringeStudios/gamja
lib/linkify: add comma to punctuation in channel regex
This commit is contained in:
parent
0c0f0ab79e
commit
52ca3bb91c
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user