Skip to content

Commit

Permalink
fix: handle encoded URIs
Browse files Browse the repository at this point in the history
  • Loading branch information
chrisgurney committed Oct 9, 2024
1 parent 86b68a8 commit 0217614
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Utils/ImportExport.ts
Original file line number Diff line number Diff line change
Expand Up @@ -323,7 +323,7 @@ export async function importFromCallout(

if (dataUriMatch) {
const dataUriType = dataUriMatch[1] || dataUriMatch[3] || '';
const dataUriValue = dataUriMatch[2] || dataUriMatch[4] || '';
const dataUriValue = dataUriMatch[2] || decodeURIComponent(dataUriMatch[4]) || '';
debugLog('• data?', dataUriType, link);

switch (dataUriType) {
Expand Down

0 comments on commit 0217614

Please sign in to comment.