improve channel mentions (#146)
something like @; was crashing the app. this should be better.
This commit is contained in:
parent
c24153c6ca
commit
1a5fb5fa51
1 changed files with 1 additions and 1 deletions
|
@ -7,9 +7,9 @@ export const punctuationMarks = [',', '.', '!', '?', ':', ';', '-', ']', ')', '}
|
||||||
|
|
||||||
const mentionToken = '@';
|
const mentionToken = '@';
|
||||||
// const mentionTokenCode = 64; // @
|
// const mentionTokenCode = 64; // @
|
||||||
const mentionRegex = /@[^\s()"]*/gm;
|
|
||||||
|
|
||||||
const invalidRegex = /[-_.+=?!@#$%^&*:;,{}<>\w/\\]/;
|
const invalidRegex = /[-_.+=?!@#$%^&*:;,{}<>\w/\\]/;
|
||||||
|
const mentionRegex = /@[^\s()"-_.+=?!@$%^&*;,{}<>/\\]*/gm;
|
||||||
|
|
||||||
function handlePunctuation(value) {
|
function handlePunctuation(value) {
|
||||||
const protocolIndex = value.indexOf('lbry://') === 0 ? protocol.length - 1 : 0;
|
const protocolIndex = value.indexOf('lbry://') === 0 ? protocol.length - 1 : 0;
|
||||||
|
|
Loading…
Reference in a new issue