Adjust channel mention regex (#269)
This commit is contained in:
parent
5c23c6d88e
commit
d649e3563f
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