parent
78d8446a0b
commit
5d1e6a8f7c
1 changed files with 1 additions and 1 deletions
|
@ -43,7 +43,7 @@ function MarkdownLink(props: Props) {
|
|||
// Regex for url protocol
|
||||
const protocolRegex = new RegExp('^(https?|lbry|mailto)+:', 'i');
|
||||
const protocol = href ? protocolRegex.exec(href) : null;
|
||||
const isMention = href.startsWith('lbry://@');
|
||||
const isMention = href && href.startsWith('lbry://@');
|
||||
const mentionedMyChannel =
|
||||
isMention && (myChannelUrls ? myChannelUrls.some((url) => url.replace('#', ':') === href) : false);
|
||||
|
||||
|
|
Loading…
Reference in a new issue