improve channel parsing for mentions maybe

This commit is contained in:
zeppi 2021-10-27 21:17:22 -04:00 committed by jessopb
parent 118b411b51
commit 82895bbce8

View file

@ -7,9 +7,9 @@ export const punctuationMarks = [',', '.', '!', '?', ':', ';', '-', ']', ')', '}
const mentionToken = '@';
// const mentionTokenCode = 64; // @
const mentionRegex = /@[^\s()"]*/gm;
const invalidRegex = /[-_.+=?!@#$%^&*:;,{}<>\w/\\]/;
const mentionRegex = /@[^\s()"-_.+=?!@$%^&*;,{}<>/\\]*/gm;
function handlePunctuation(value) {
const modifierIndex =