GothenburgBitFactory / GothenburgBitFactory/timewarrior

Digit-only tags \d{3,7} does not start timetracking

Open
#731 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
C++
Stars
1.7k
Forks
117
Avg merge
1d 7h
Merged PRs (30d)
5

Description

Hi,

I've got trouble using only digit tags.

The following command does not start time tracking

```shell
$ timew start 07:50 :adjust "foo" "bar" "1111"
Unrecognized date range: ' '.
```

Putting a character in front of it, fixes the issue

```shell

```shell
$ timew start 07:50 :adjust "foo" "bar" "b1111"
Unrecognized date range: ' '.
```

* The length of the number must be between two and eight digits.
* The position of the tag doesn't matter.

```shell
$ timew --version
1.9.1
```

Contributor guide

Open the contributing guide

Research direction

Start by reproducing the digit-only tag case with timew 1.9.1, then compare it with the working b1111 case and check how the start command parses tags and date ranges. Done means a tag of two to eight digits, in any position, starts time tracking without the reported error, while existing tag behavior remains intact.

Written by the indexing model from the issue text.

Assessment

Tech stack
cpp
Domain
cli
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
38/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.