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

fix: parsing of dots in packagins / recycling instructions #7948

Merged
merged 3 commits into from
Jan 6, 2023

Conversation

stephanegigandet
Copy link
Contributor

Small fix for an issue reported on Slack by Mathieu Morey: " the text extraction got it really wrong: "Film plastique à jeter. Étui carton à recycler." adds a plastic sleeve (ok) that is marked recyclable (nope).
If I fix it and change the sleeve as "discard", another plastic sleeve that is recyclable is added..."

Also added more tests.

@stephanegigandet stephanegigandet requested a review from a team as a code owner January 5, 2023 16:12
@github-actions github-actions bot added 📦 Packaging https://wiki.openfoodfacts.org/Category:Recycling 🧪 tests labels Jan 5, 2023
@sonarqubecloud
Copy link

sonarqubecloud bot commented Jan 6, 2023

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

No Coverage information No Coverage information
No Duplication information No Duplication information

@teolemon
Copy link
Member

teolemon commented Jan 6, 2023

Another one is "Barquette et film plastique à recycler" which from memory is not parsed properly

Copy link
Member

@alexgarel alexgarel left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@alexgarel alexgarel merged commit 1b2e690 into main Jan 6, 2023
@alexgarel alexgarel deleted the packaging-parsing-fix branch January 6, 2023 14:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
📦 Packaging https://wiki.openfoodfacts.org/Category:Recycling 🧪 tests
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants