improve channel parsing for mentions maybe
This commit is contained in:
parent
118b411b51
commit
82895bbce8
1 changed files with 1 additions and 1 deletions
|
@ -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 =
|
||||
|
|
Loading…
Add table
Reference in a new issue