We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Version of package: 1.5.6 Node version: 10.9.0
➜ node > parse=require('recipe-ingredient-parser').parse [Function: parse] > parse('- ½ cup coconut flour') { quantity: '0.5', unit: null, ingredient: '- cup coconut flour' } > parse('- 1 ½ teaspoon vanilla extract') { quantity: '1.5', unit: null, ingredient: '- 1 teaspoon vanilla extract' }
Expected behaviour: "cup" and "teaspoon" should be parsed as units.
Actual behaviour: unit seems to end up under ingredient, unit is null
null
The text was updated successfully, but these errors were encountered:
I was able to work around this by removing the leading slash - that seems to mess things up.
Sorry, something went wrong.
No branches or pull requests
Version of package: 1.5.6
Node version: 10.9.0
Expected behaviour: "cup" and "teaspoon" should be parsed as units.
Actual behaviour: unit seems to end up under ingredient, unit is
null
The text was updated successfully, but these errors were encountered: