Publish input answers only when the whole answer is a number - #6197
Open
rtibblesbot wants to merge 1 commit into
Open
rtibblesbot wants to merge 1 commit into
rtibblesbot wants to merge 1 commit into
Conversation
- Match the whole answer instead of searching for a number in it - Read a markdown-escaped decimal point as a plain one - Reject e+- exponents Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
rtibblesbot
force-pushed
the
issue-6195-148ce1
branch
from
September 25, 2026 20:56
33bcae1 to
a5d50c7
Compare
rtibblesbot
marked this pull request as ready for review
September 25, 2026 20:58
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
The Perseus export published a number found anywhere in an input answer, so
4\.62published as0.62and1:3as1. Input answers now parse only when the whole answer is a number, and\.reads as a decimal point; anything else drops from the export.References
Fixes #6195
Reviewer guidance
e+-(1,000e+-3) the intended reading of the AC? It fully matched the exponent pattern before.\.-escaped string answers be unescaped too? Left untouched here.AI usage
Used Claude Code to trace the wrong answers to
extract_valueand write the fix and tests. Verified with the parser test suite, black and flake8.🤖 Generated with Claude Code
@rtibblesbot's comments are generated by an LLM, and should be evaluated accordingly
How was this generated?
🟡 Waiting for feedback
Last updated: 2026-09-27 01:21 UTC