Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Time entry format #10

Open
CMurtagh-LGTM opened this issue Oct 28, 2022 · 1 comment
Open

Time entry format #10

CMurtagh-LGTM opened this issue Oct 28, 2022 · 1 comment
Labels
enhancement New feature or request

Comments

@CMurtagh-LGTM
Copy link
Contributor

Currently you need to write 5h 0m for logging 5 hours, and 0h 30m for logging 30 minutes.
Is it possible to have this just be 5h and 30m respectively.

@JesseWilliamson
Copy link
Contributor

JesseWilliamson commented Oct 28, 2022

Right now this just uses a very basic regex to grab the first two numbers from the user input string so the h and m don't actually do anything. This should probably be updated anyway for better erorr checking and you're probably right in saying this would be a better way to do it. I'll look into replacing it with something like \d(?=h) for hours and \d(?=m) for minutes.

CMurtagh-LGTM added a commit that referenced this issue Oct 29, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants