From 02342650aac05a7754a5f45a8b564c1a5cbb0d2b Mon Sep 17 00:00:00 2001 From: Aashir Shaikh Date: Thu, 3 Jun 2021 04:44:01 +0500 Subject: [PATCH] fixed odysee embeds bug #730 --- src/components/common/MarkdownViewer/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/common/MarkdownViewer/index.js b/src/components/common/MarkdownViewer/index.js index 697fe49f..188389ea 100644 --- a/src/components/common/MarkdownViewer/index.js +++ b/src/components/common/MarkdownViewer/index.js @@ -328,7 +328,7 @@ const prepareLbryEmbeds = (content) => { } const prepareOdyseeEmbeds = (content) => { - const odyseeRegex = /(?:https?:\/\/(?:(?:odysee\.com)))/i + const odyseeRegex = /(?:https?:\/\/(?:(?:odysee\.com\/@(.*?))))/i let body = content const links = markdownLinkExtractor(content)