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
653 stars 384 forks source link

[ingredient-analysis] ingredient group in parentheses has a colon before the opening parenthesis, not parsed correctly #3959

Open aleksejrs opened 4 years ago

aleksejrs commented 4 years ago

Describe the bug ingredient group: (element1, element2, element3) needs to be parsed as ingredient group (element1, element2, element3).

To Reproduce Steps to reproduce the behavior:

  1. Go to https://world.openfoodfacts.org/product/4604075020176/%D1%81%D0%BE%D1%83%D1%81-mr-ricco-%D1%81%D1%8B%D1%80%D0%BD%D1%8B%D0%B9#ingredients_list
  2. Click "Details of the analysis of the ingredients »"
  3. Look at the items under "комплексная пищевая добавка".

Expected behavior "порошок сыра гауда" to "эмульгирующая соль Е 339" must be under "комплексная пищевая добавка".

Part of

svensven commented 4 years ago

For clarity, it's currently parsing it into ingredient group (element1), element2, element3.