use eslint auto fix

This commit is contained in:
duanfuxiang
2025-01-07 12:27:22 +08:00
parent d8573c7889
commit 8d253faddc
41 changed files with 890 additions and 1569 deletions

View File

@@ -4,7 +4,7 @@ export function parseImageDataUrl(dataUrl: string): {
mimeType: string
base64Data: string
} {
const matches = dataUrl.match(/^data:([^;]+);base64,(.+)/)
const matches = /^data:([^;]+);base64,(.+)/.exec(dataUrl)
if (!matches) {
throw new Error('Invalid image data URL format')
}