channel parsing bugfix (#199)

This commit is contained in:
jessopb 2021-11-01 09:58:28 -04:00 committed by GitHub
parent 994a39b0df
commit fa029e0c09
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

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