mirror of
https://github.com/outline/outline.git
synced 2026-11-22 14:01:41 +03:00
fix: Loosen Tella.tv embed regex (#9779)
This commit is contained in:
1 parent
481adc6ecb
commit
a4d59dfc88
1 file changed
+1
-1
@@ -589,7 +589,7 @@ const embeds: EmbedDescriptor[] = [
|
||||
new EmbedDescriptor({
|
||||
title: "Tella",
|
||||
keywords: "video",
|
||||
regexMatch: [/^https?:\/\/(?:www\.)?tella\.tv\/video\/([a-z0-9]+)(.*)?$/],
|
||||
regexMatch: [/^https?:\/\/(?:www\.)?tella\.tv\/video\/([^\/]+)(?:.*)?$/],
|
||||
transformMatch: (matches: RegExpMatchArray) =>
|
||||
`https://www.tella.tv/video/${matches[1]}/embed?b=0&title=1&a=0&loop=0&t=0&muted=0&wt=1`,
|
||||
icon: <Img src="/images/tella.png" alt="Tella" />,
|
||||
|
||||
Reference in new issue
Block a user