Fix regex to clean base64 data URI (#563)

Fix #562
This commit is contained in:
gg authored and GitHub committed 2026-08-17 13:04:34 +02:00
1 parent fbc7d47fbd
commit 2912cf3eb9
1 file changed
+1 -1
@@ -77,7 +77,7 @@ const cleanedFileBase64 = computed(() => {
if (includeDataUri.value) {
return fileBase64.value;
}
return fileBase64.value.replace(/^data:[^;];base64,/, '');
return fileBase64.value.replace(/^data:[^;]*;base64,/, '');
});
const { copy: copyFileBase64 } = useCopy({ source: cleanedFileBase64, text: t('tools.base64-file-converter.texts.text-base64-string-copied-to-the-clipboard') });