Skip to content

Commit

Permalink
Merge pull request #400 from imdone/1.45.1
Browse files Browse the repository at this point in the history
Make sure path is full path
  • Loading branch information
piascikj committed Sep 13, 2024
2 parents fea9ff1 + 260876c commit 8f6d939
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/project.js
Original file line number Diff line number Diff line change
Expand Up @@ -442,7 +442,8 @@ module.exports = class WorkerProject extends Project {
* @param {Boolean} opts.emit - Whether to emit the new card event
*/
newCard({ list, path, template, title, comments, emit = true }) {
if (!path || !_path.parse(path).ext) path = this.getFullPath(this.getNewCardsFile({title}))
if (!path || !_path.parse(path).ext) path = this.getNewCardsFile({title})
path = this.getFullPath(path)

const { isFile, isDirectory } = this.preparePathForWriting(path)

Expand Down

0 comments on commit 8f6d939

Please sign in to comment.