MCPcopy Create free account
hub / github.com/Hello-Application-XH/HelloGML / isBASE64Data

Function isBASE64Data

src/utils.ts:55–57  ·  view source on GitHub ↗
(value: string)

Source from the content-addressed store, hash-verified

53}
54
55export function isBASE64Data(value: string): boolean {
56 return typeof value === "string" && /^data:/.test(value);
57}
58
59export function extractBASE64DataFormat(value: string): string | null {
60 const match = value.trim().match(/^data:(.+);base64,/);

Callers 2

checkFileUrlFunction · 0.90
uploadFileFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected