channel parsing bugfix (#199)
This commit is contained in:
parent
994a39b0df
commit
fa029e0c09
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||||
|
|
Loading…
Reference in a new issue