MCPcopy
hub / github.com/ionic-team/ionicons / isEncodedDataUrl

Function isEncodedDataUrl

src/components/icon/validate.ts:53–53  ·  view source on GitHub ↗
(url: string)

Source from the content-addressed store, hash-verified

51
52export const isSvgDataUrl = (url: string) => url.startsWith('data:image/svg+xml');
53export const isEncodedDataUrl = (url: string) => url.indexOf(';utf8,') !== -1;

Callers 2

getSvgContentFunction · 0.90
validate.spec.tsFile · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…