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

Function isVideo

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

Source from the content-addressed store, hash-verified

25}
26
27export function isVideo(href: string): boolean {
28 return isYoutubeUrl(href) || href.endsWith('.mov');
29}
30
31export function isMail(href: string): boolean {
32 return href.startsWith('mailto:');

Callers 2

utilities.spec.tsFile · 0.90
LinkFunction · 0.90

Calls 1

isYoutubeUrlFunction · 0.85

Tested by

no test coverage detected