mirror of
https://github.com/outline/outline.git
synced 2026-06-13 11:25:03 +03:00
fix: Loosen Tella.tv embed regex (#9779)
This commit is contained in:
@@ -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