Skip to content

fix: parse_duration drops the days (d) unit#27

Open
makaiachildress-web wants to merge 1 commit into
tine1117:mainfrom
makaiachildress-web:fix/issue-1-bounty
Open

fix: parse_duration drops the days (d) unit#27
makaiachildress-web wants to merge 1 commit into
tine1117:mainfrom
makaiachildress-web:fix/issue-1-bounty

Conversation

@makaiachildress-web
Copy link
Copy Markdown

Summary

Fixes #1

Changes

7638716 fix: count days (d) unit in parse_duration (#1)

Quality Checks:

  • Tests: N/A
  • Lint/Format: Passing
  • Files changed: 2

/claim #1

The 'd' character was accepted by the token regex but missing from the
_UNITS map, so days were silently dropped (parse_duration('1d') -> 0).
Add 'd' = 86400 seconds and regression tests for '1d' and '2d4h'.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

parse_duration drops the days (d) unit

1 participant