Support for optional 3-letter day-of-week in the date
Current input example;
- 8/22 some/project/code ~some ~tags - short summary
Desired support for new format;
- 8/22 thu some/project/code ~some ~tags - short summary
Logic;
The day name is specified if;
-
Next word after date is 3 letters,
-
and it is one of
mon
,tue
,wed
,thu
,fri
,sat
,sun
-
TODO: Check if that date is actually matching with the day-of-week name Throw exception to reject invalid input if the day name is not matching
Extra caution/discussion points;
-
Problem; We also support a person name right after date. Person name can also be 3-letters long. If somebody makes a typo and types a day as
thi
instead ofthu
, we would accept that as a person name with the logic above.- Possible Solution; drop support for writing person names per report item. We don't have mixed reports in reality.
- Possible Solution; Change how person name is written, eg
@furkan
instead of justfurkan
- In both solutions, we can also implement a typo protection. if the word after date is 3 letters,
it MUST match one of the 7 day names.
- Extra problem; what if the typo makes it 4 or 2 letters?
-
Another possible problem; Similar problem with above, what if it gets mixed with a project code?