**Restrict fielding-sequence regexes to fielders 1-9** #60
Labels
No labels
bug
documentation
duplicate
enhancement
good first issue
help wanted
invalid
question
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
umpire274/bs_scoring#60
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Restrict fielding-sequence regexes to fielders 1-9
Both fielding-sequence token patterns use
\d, so invalid inputs like60or6-0are lexed as validFieldingSeqvalues even though fielder0is illegal. Those inputs bypass parse-time rejection and later fail in command building with a generic validation error (segment_index: 0) rather than a segment-specific parse error, which breaks the new diagnostic model. Tightening these regexes to[1-9]prevents malformed fielder numbers from entering the pipeline.Useful? React with 👍 / 👎.
Originally posted by @chatgpt-codex-connector[bot] in https://github.com/umpire274/bs_scoring/pull/58#discussion_r3111521202