-
-
Notifications
You must be signed in to change notification settings - Fork 406
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
taxonomy: Added unknown Croatian ingredients to the taxonomy (part 8) #9227
Conversation
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #9227 +/- ##
==========================================
+ Coverage 48.14% 48.15% +0.01%
==========================================
Files 65 65
Lines 20341 20345 +4
Branches 4931 4931
==========================================
+ Hits 9794 9798 +4
Misses 9296 9296
Partials 1251 1251 ☔ View full report in Codecov by Sentry. |
lib/ProductOpener/Ingredients.pm
Outdated
# start by "with etc." should be added at the end of the previous ingredient | ||
my %with = (hr => '(s | sa )',); | ||
my $with = $with{$lc} || " will not match "; | ||
if ($b =~ /^(s |sa )/i) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
if ($b =~ /^(s |sa )/i) { | |
if ($b =~ /^$with/i) { |
Kudos, SonarCloud Quality Gate passed! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you!
At some point we'll need to handle better the parsing of min and max so that the value go to percent_min and percent_max, but we can do that later.
What
issue for max: 1st ingredient is 70% min, 2nd 30% max, and there are more ingredients but estimated at 0...
https://hr.openfoodfacts.org/product/3850355006779/salakis-feta-president
Related issue(s) and discussion