Skip to content

Commit

Permalink
Merge pull request #83 from dumka/fix_spaces_in_local_file_names
Browse files Browse the repository at this point in the history
Fix spaces in a url and local file name
  • Loading branch information
chhoumann committed Jul 31, 2023
2 parents 415b357 + cb670e2 commit 8e02db3
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/URIHandler.ts
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,9 @@ export default async function podNotesURIHandler(

return;
}

const localFile = app.vault.getAbstractFileByPath(url);

const decodedUrl = url.replace(/\+/g, " ");
const localFile = app.vault.getAbstractFileByPath(decodedUrl);

let episode: Episode | undefined;

Expand Down

0 comments on commit 8e02db3

Please sign in to comment.