Repository navigation
Refuse 703 and 723 without their fourth digit (1.2.1) - #18
Merged
Merged
Conversation
Both build their identifier by putting the fourth digit onto a stem rather than by matching it, so unlike every other family there is no switch arm to fall through. A barcode stopping before that digit came back as a successful parse whose ai was "703" or "723", neither of which the standard defines, and whose title trailed off after the "#". The guard added in 1.2.0 did not catch it: that one fires when nothing was parsed at all, and here an element is built, just a nonsense one. 421, 423 and 427 are three digits by definition rather than stems waiting for a fourth, and are untouched.
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.
703and723build their identifier by putting the fourth digit onto a stem instead of matching it, so unlike every other family there is no switch arm to fall through:Neither
703nor723is an identifier the standard defines, and the title trails off after the#. Both are refused now withunrecognised AI.The guard added in 1.2.0 misses this: it fires when nothing was parsed at all, and here an element is built — just a nonsense one.
421,423and427are three digits by definition rather than stems waiting for a fourth, so they are untouched.7030-7039and7230-7239still parse.Releases as 1.2.1. 407 specs, coverage still 100%.