duckduckgo / zeroclickinfo-goodies

DuckDuckGo Instant Answers based on Perl & JavaScript
https://duckduckhack.com/
Other
980 stars 1.76k forks source link

Conversions: Support query oz to ml (absence of `fl`) #1125

Closed MrChrisW closed 9 years ago

MrChrisW commented 9 years ago

IA: https://duck.co/ia/view/conversions

Support the query oz in ml

Currently the following query works 32 fl oz to ml however 32 oz to ml does not. Conversions should assume fl if ml is specified with oz

Originally reported here: https://github.com/duckduckgo/zeroclickinfo-spice/issues/1828 by @yegg

mintsoft commented 9 years ago

Hmm, the easiest way to implement this is to probably massage the input rather than fixing it in Conversions

MrChrisW commented 9 years ago

@mintsoft Do you mean something like this? or am I on the wrong track? :wink:

mintsoft commented 9 years ago

@MrChrisW something similar yeah

mintsoft commented 9 years ago

Fixed by @MrChrisW in #1127