Skip to content

fix(time): fix typo unkonwn -> unknown in parse_duration - #84

Open
anakrish wants to merge 3 commits into
mainfrom
fix/time-duration-d-w-y
Open

fix(time): fix typo unkonwn -> unknown in parse_duration#84
anakrish wants to merge 3 commits into
mainfrom
fix/time-duration-d-w-y

Conversation

@anakrish

Copy link
Copy Markdown
Owner

Fixes a single-character typo in src/builtins/time/compat.rs: the match arm variable was named unkonwn instead of unknown. No behavior change.

anakrish and others added 3 commits August 28, 2026 11:17
OPA supports 'd' (day), 'w' (week), and 'y' (365-day year) as duration
unit suffixes; Regorus previously returned an error for those tokens.

- Define DAY = 24 * HOUR, WEEK = 7 * DAY, YEAR = 365 * DAY constants
- Add 'd', 'w', 'y' arms to the unit-matching arm of parse_duration()
- Add YAML regression test covering individual units and a mixed
  '1d12h' compound duration

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
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.

1 participant