Skip to content

Commit

Permalink
Fix images with spaces in name not displaying
Browse files Browse the repository at this point in the history
  • Loading branch information
piascikj committed Aug 11, 2024
1 parent 8b4181d commit 79d2441
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 4 deletions.
5 changes: 5 additions & 0 deletions .imdone/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,11 @@ lists:
hidden: true
ignore: true
id: jea6b3hlxv87stb
- name: Past Due Reminders
hidden: false
ignore: false
id: jea613h4lzjqljbo
filter: 'remind = /./ and remind < "${now}" and list != READY and list != DONE'
settings:
openIn: code
journalType: Folder
Expand Down
2 changes: 1 addition & 1 deletion lib/card.js
Original file line number Diff line number Diff line change
Expand Up @@ -296,7 +296,7 @@ module.exports = function newCard(task, _project, dontParse) {
imagePath = _path.join(
_path.dirname(this.fullPath),
imagePath
)
).replace(/ /g, '%20')
const imageURL = `file://${imagePath}`
return p1 + imageURL + p3
}
Expand Down
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "imdone-core",
"version": "1.44.4",
"version": "1.44.5",
"description": "imdone-core",
"main": "index.js",
"scripts": {
Expand Down

0 comments on commit 79d2441

Please sign in to comment.