mirror of
https://codeberg.org/emersion/gamja.git
synced 2025-04-21 18:10:54 -04:00
lib/linkify: add comma to punctuation in channel regex
This commit is contained in:
parent
0c0f0ab79e
commit
52ca3bb91c
1 changed files with 1 additions and 1 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue