MCPcopy Create free account
hub / github.com/Linen-dev/linen.dev / isYoutubeEmbedUrl

Function isYoutubeEmbedUrl

apps/web/ui/Message/Link/utilities.ts:5–10  ·  view source on GitHub ↗
(href: string)

Source from the content-addressed store, hash-verified

3}
4
5export function isYoutubeEmbedUrl(href: string) {
6 return (
7 href.startsWith('https://www.youtube.com/embed/') ||
8 href.startsWith('https://youtube.com/embed/')
9 );
10}
11
12export function isYoutubeWatchUrl(href: string): boolean {
13 return (

Callers 1

isYoutubeUrlFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected