MCPcopy Create free account
hub / github.com/ScattrdBlade/bigFileUpload / isSupported

Function isSupported

utils/getMediaUrl.ts:111–114  ·  view source on GitHub ↗
(url: string)

Source from the content-addressed store, hash-verified

109}
110
111export function isSupported(url: string): boolean {
112 const ext = getUrlExtension(url);
113 return ext ? supportedExtensions.includes(ext) : false;
114}
115
116export function getMediaUrl(props: { src?: string; href?: string; itemSrc?: string; itemHref?: string; target?: any; }): string | null {
117 const url = props.src || props.href || props.itemSrc || props.itemHref;

Callers 1

getMediaUrlFunction · 0.85

Calls 1

getUrlExtensionFunction · 0.85

Tested by

no test coverage detected