You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In the record card, it's possible to write a line for an ingredient, in a semi free format:
1.5 cup oil
1 c. oil
1.5 c. oil
4/5 tsb. oil
However, the parser for this content is broken, due to an incorrect regex, and returns something along the lines of: {'amount': '1', 'unit': '.5', 'ingredient': '.c oil'}
This is an old issue that has already been present in previous releases of Gourmet.
In the record card, it's possible to write a line for an ingredient, in a semi free format:
However, the parser for this content is broken, due to an incorrect regex, and returns something along the lines of:
{'amount': '1', 'unit': '.5', 'ingredient': '.c oil'}
This is an old issue that has already been present in previous releases of Gourmet.
The regex is defined here, of which the faulty sub-regex is defined here.
Moreover, commas in decimal values (eg.
1,5
) are not supported.The text was updated successfully, but these errors were encountered: