Skip to content

Conversation

@ryanio
Copy link
Collaborator

@ryanio ryanio commented Jan 14, 2026

Summary

  • Rejects input containing whitespace with a clear error message instead of silently accepting it
  • Error message explicitly shows the expected format: '1,2,3' or '1:5' or '1,3:5,8' (no spaces)

Changes

  • Add whitespace check before validation that throws a descriptive error
  • Add unit test verifying whitespace rejection

Test plan

  • All existing tests pass (553 passing)
  • New test verifies whitespace is rejected with helpful error message

🤖 Generated with Claude Code

ryanio and others added 2 commits January 14, 2026 12:19
Normalize input by trimming and removing whitespace around delimiters
instead of complicating the validation regex. This keeps the code simple
while allowing inputs like " 1, 3:5, 8 " to work correctly.

Co-Authored-By: Claude Opus 4.5 <[email protected]>
Instead of tolerating whitespace, throw a clear error message when
whitespace is detected in the input. This makes the expected format
explicit and helps users correct their input.

Co-Authored-By: Claude Opus 4.5 <[email protected]>
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.

2 participants