Skip to content

Commit

Permalink
#68 fixed load dst file from dropbox url
Browse files Browse the repository at this point in the history
  • Loading branch information
DanielHeckert committed Sep 10, 2024
1 parent 4beb827 commit 6e69fff
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/app/tools/import/services/import-domain-story.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,9 @@ export class ImportDomainStoryService
})
.then((blob) => {
const string = fileUrl.split('/');
const filename = string[string.length - 1].replace(/%20/g, ' ');
const filename = string[string.length - 1]
.replace(/%20/g, ' ')
.replace(/(\.egn\.svg).*/, '$1');

if (!filename) {
throw new Error('Unable to extract filename from URL');
Expand Down

0 comments on commit 6e69fff

Please sign in to comment.