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