Closed wvengen closed 3 years ago
This happens in about 0.02% of the ingredient lists. For examples, run cat data/ingredient-samples-nl | grep -v ':\\n' | grep ':\s*[(\[]\s*[0-9,.]\+\s*\(%\|g\|gr\|gram\|ml\)\.\?\s*[])]'
.
This is fixed now with #15.
The ingredients list
sauce: (50%) tomato, salt
is incorrectly parsed by both the strict and loose parser.strict: no result loose:
{:contains=>[{:name=>"sauce", :amount=>"50%"}, {:name=>"salt"}]}
This would be good to fix.