v0.11.0-alpha2 #58
No reviewers
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!58
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "v0.11.0-alpha2"
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?
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit:
0892abcff0ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
@ -0,0 +70,4 @@/// Hyphenated fielding sequence: digits separated by `-`.pub(super) static RE_FIELDING_SEQ_DASHED: LazyLock<Regex> =LazyLock::new(|| Regex::new(r"^\d(-\d)+$").unwrap());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 👍 / 👎.
@ -0,0 +187,4 @@let has_pitch = indexed.iter().any(|s| matches!(s.segment, Segment::Pitch(_)));if has_pitch && has_non_steal_action {check_mixingonly errors onhas_pitch && has_non_steal_action, so lines that mix steals with hits/outs/FC (for example5 h, 3 st 2b) are accepted even though this combination is unsupported in the new grammar. Once accepted,build_commandsstill emits both commands (steal plus hit/defensive play), which can apply extra runner movement in the same plate appearance and produce incorrect scoring state instead of a validation error. Please add an explicit steal-vs-action exclusion in the mixing pass.Useful? React with 👍 / 👎.