Thomas Zarebczan 2021-12-30 16:08:34 -05:00 committed by GitHub
parent 78d8446a0b
commit 5d1e6a8f7c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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);