Skip to content

Commit

Permalink
Fix for BREAK parsing re #48
Browse files Browse the repository at this point in the history
  • Loading branch information
lynchjames committed Dec 23, 2020
1 parent acd2ddd commit 272a90e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/constants.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@ export const DATE_REGEX = /(?<target>{{date:?(?<date>[^}]*)}})/g;

export const DAY_PLANNER_FILENAME = 'Day Planner-{{date}}.md';

//https://regex101.com/r/VAxRnc/5
//https://regex101.com/r/VAxRnc/6
export const PLAN_PARSER_REGEX =
/^(((-?[\s]*\[?(?<completion>[x ]*)\])?(\d.)?\s*?(?<hours>\d{1,2}):(?<minutes>\d{2})\s)((?<break>BREAK[$\n])|(?<end>END[\n ]?)|((?<text>.*))))$/gmi;
/^(((-?[\s]*\[?(?<completion>[x ]*)\])?(\d.)?\s*?(?<hours>\d{1,2}):(?<minutes>\d{2})\s)((?<break>BREAK[\n ]?)|(?<end>END[\n ]?)|((?<text>.*))))$/gmi;

export const MERMAID_REGEX = /```mermaid\ngantt[\S\s]*?```\s*/gmi;

Expand Down

0 comments on commit 272a90e

Please sign in to comment.