cffe934d5e
Co-authored-by: Cursor <cursoragent@cursor.com>
10 lines
332 B
TypeScript
10 lines
332 B
TypeScript
export function isSignatureImage(value: string | undefined | null): boolean {
|
|
return typeof value === 'string' && value.startsWith('data:image/')
|
|
}
|
|
|
|
export function formatSignatureForExport(value: string | undefined | null): string {
|
|
if (!value) return ''
|
|
if (isSignatureImage(value)) return '[Unterschrift]'
|
|
return value
|
|
}
|