openfoodfacts / openfoodfacts-server

Open Food Facts database, API server and web interface - 🐪🦋 Perl, CSS and JS coders welcome 😊 For helping in Python, see Robotoff or taxonomy-editor
http://openfoodfacts.github.io/openfoodfacts-server/
GNU Affero General Public License v3.0
662 stars 390 forks source link

Percentages as mg/kg not correctly parsed #6132

Open aleene opened 3 years ago

aleene commented 3 years ago

Describe the bug

The fractions in the ingredient list are expressed as Hierro 30 mg/kg, Ac. Fólico 2,2 mg/kg, Tiamina 6,3 mg/kg. Riboflavina (B2) 1,3 mg/kg, Niacina 13 mg/kg. The slash is seen as a delimiter and breaks the mg and kg.

To Reproduce

See product: https://world.openfoodfacts.org/product/7790174001295/nuggets-vegetalex

Expected behavior

In this case the slash should not be seen as a delimiter.

And for the ingredients recogniser the weights should be ignored.

Part of

github-actions[bot] commented 2 years ago

This issue is stale because it has been open 90 days with no activity.