Skip to content

fix: validate # occurrence as an integer in 1..5 - #348

Open
AmeerAliAnwar wants to merge 1 commit into
Airfooox:masterfrom
AmeerAliAnwar:fix/occurrence-bounds
Open

AmeerAliAnwar wants to merge 1 commit into
Airfooox:masterfrom
AmeerAliAnwar:fix/occurrence-bounds

Conversation

@AmeerAliAnwar

Copy link
Copy Markdown

Resolves #347

Summary

For dow#n (useNthWeekdayOfMonth), validate the occurrence value as an integer in 1..5. Previously, 0, 00, 0.5, and 1.5 were accepted because the occurrence string '0' was truthy and non-integers were not checked.

Verification

  • npx jest: 597/597 tests pass (596 existing + 1 new test).

Copilot AI lite review requested due to automatic review settings September 28, 2026 20:22

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot was unable to review this pull request because the user who requested the review has reached their quota limit.

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.

# occurrence is only upper-bounded: 0, 00 and 1.5 are accepted

2 participants