Skip to content

Commit abd1f09

Browse files
Bug: Focus loop on mac
1 parent af038ef commit abd1f09

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

main.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -225,7 +225,10 @@ export default class CanvasDailyNotePlugin extends Plugin {
225225
*/
226226
getExistingDailyFile(): TFile | TAbstractFile | null | undefined {
227227
const dailyFolder = this.dailyNotePlugin.options.folder;
228-
const expectedNotePath = `${dailyFolder}/${new Date().getFullYear()}-${String(
228+
const expectedNotePath = `${dailyFolder.replace(
229+
/^\/|\\/,
230+
""
231+
)}/${new Date().getFullYear()}-${String(
229232
new Date().getMonth() + 1
230233
).padStart(2, "0")}-${String(new Date().getDate()).padStart(
231234
2,

0 commit comments

Comments
 (0)