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 3ac1698 commit 7a9b125Copy full SHA for 7a9b125
src/front-matter-manager.ts
@@ -199,9 +199,10 @@ export class FrontMatterManager {
199
const content = await this.app.vault.read(file);
200
// Extract the dedicated simple-time-tracker block.
201
// It must begin and end on its own line.
202
- const blockRegex = /^```simple-time-tracker\s*\n([\s\S]*?)\n```/m;
+ const blockRegex = /^```simple-time-tracker\s*\n([\s\S]*?)```/m;
203
const blockMatch = content.match(blockRegex);
204
if (!blockMatch) {
205
+ // TODO: then create it and return current Date now (or from notes in TimeFolder)
206
throw new Error("No dedicated simple-time-tracker block found.");
207
}
208
const blockContent = blockMatch[1];
0 commit comments