Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Skip unmatching optional pattern groups #300

Merged
merged 1 commit into from
Jul 29, 2024
Merged

Conversation

jodal
Copy link
Owner

@jodal jodal commented Jul 29, 2024

In the latest GS1 Application Identifier dataset, there are four AIs
with optional pattern groups. When the value matches everything but the
optional pattern group, the group's value becomes None. This caused
Biip to crash when we tried building a string of the characters
matching the pattern.

Fixes #295

In the latest GS1 Application Identifier dataset, there are four AIs
with optional pattern groups. When the value matches everything but the
optional pattern group, the group's value becomes `None`. This caused
Biip to crashed when we tried building a string of the characters
matching the pattern.

Fixes #295
@jodal jodal force-pushed the optional-gs1-pattern-groups branch from 91cbf99 to 7a8c9a3 Compare July 29, 2024 16:23
@jodal jodal changed the title Support optional GS1 pattern groups and extract more date/datetimes Skip unmatching optional pattern groups Jul 29, 2024
@jodal jodal merged commit 5095ebe into main Jul 29, 2024
5 checks passed
@jodal jodal deleted the optional-gs1-pattern-groups branch July 29, 2024 16:24
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.

TypeError raised when parsing gtin in 3.2.0
1 participant