Skip to content
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

Coloned amount not parsed correctly #14

Open
wvengen opened this issue Oct 1, 2018 · 1 comment
Open

Coloned amount not parsed correctly #14

wvengen opened this issue Oct 1, 2018 · 1 comment
Labels
bug:parsing Something is not parsed or parsed incorrectly parser:loose Affects the loose parser

Comments

@wvengen
Copy link
Member

wvengen commented Oct 1, 2018

With the loose parser, a, <1%: b yields:

{:amount=>"<1%", :contains=>[{:name=>"a"}]}

though it should yield

{:contains=>[{:name=>"a", :contains=[{:name=>"b", :amount=>"<1%"]}]}
@wvengen wvengen added parser:loose Affects the loose parser bug:parsing Something is not parsed or parsed incorrectly labels Oct 1, 2018
@wvengen
Copy link
Member Author

wvengen commented Oct 1, 2018

Ingredient lists from the USA often contain something like ..., less than 2% of: ..., which has the same issue as above (and often isn't even parsed in the strict parser).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug:parsing Something is not parsed or parsed incorrectly parser:loose Affects the loose parser
Projects
None yet
Development

No branches or pull requests

1 participant