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

Function extractBASE64DataFormat

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

Source from the content-addressed store, hash-verified

57}
58
59export function extractBASE64DataFormat(value: string): string | null {
60 const match = value.trim().match(/^data:(.+);base64,/);
61 return match ? match[1] : null;
62}
63
64export function removeBASE64DataHeader(value: string): string {
65 return value.replace(/^data:(.+);base64,/, "");

Callers 1

uploadFileFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected