We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent af038ef commit abd1f09Copy full SHA for abd1f09
main.ts
@@ -225,7 +225,10 @@ export default class CanvasDailyNotePlugin extends Plugin {
225
*/
226
getExistingDailyFile(): TFile | TAbstractFile | null | undefined {
227
const dailyFolder = this.dailyNotePlugin.options.folder;
228
- const expectedNotePath = `${dailyFolder}/${new Date().getFullYear()}-${String(
+ const expectedNotePath = `${dailyFolder.replace(
229
+ /^\/|\\/,
230
+ ""
231
+ )}/${new Date().getFullYear()}-${String(
232
new Date().getMonth() + 1
233
).padStart(2, "0")}-${String(new Date().getDate()).padStart(
234
2,
0 commit comments