Skip to content

Commit

Permalink
Bug: Focus loop on mac
Browse files Browse the repository at this point in the history
  • Loading branch information
andrewmcgivery committed Feb 14, 2024
1 parent af038ef commit abd1f09
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -225,7 +225,10 @@ export default class CanvasDailyNotePlugin extends Plugin {
*/
getExistingDailyFile(): TFile | TAbstractFile | null | undefined {
const dailyFolder = this.dailyNotePlugin.options.folder;
const expectedNotePath = `${dailyFolder}/${new Date().getFullYear()}-${String(
const expectedNotePath = `${dailyFolder.replace(
/^\/|\\/,
""
)}/${new Date().getFullYear()}-${String(
new Date().getMonth() + 1
).padStart(2, "0")}-${String(new Date().getDate()).padStart(
2,
Expand Down

0 comments on commit abd1f09

Please sign in to comment.