Skip to content

Commit

Permalink
fix bad file upload mass
Browse files Browse the repository at this point in the history
  • Loading branch information
jordanhandy committed Jun 12, 2024
1 parent 5895354 commit deb6ff6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/commands/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ export function uploadCurrentNoteFiles(file: TFile, plugin: CloudinaryUploader):
* Based on answer returned, determine subfolder, then:
* Replace current strings with Cloudinary URLs
*/
let data = plugin.app.vault.cachedRead(file).then(() => {
let data = plugin.app.vault.cachedRead(file).then((data) => {
const found = data.match(/\!\[\[(?!https?:\/\/).*?\]\]/g);
if (found && found.length > 0) for (let find of found) {
let fileString = find.substring(3, find.length - 2);
Expand Down

0 comments on commit deb6ff6

Please sign in to comment.