mirror of
https://github.com/zaphar/kitchen.git
synced 2025-07-21 19:29:49 -04:00
handle pound as a unit
This commit is contained in:
parent
bf633b50d5
commit
3dea81aa2d
@ -204,6 +204,8 @@ make_fn!(unit<StrIter, String>,
|
||||
text_token!("floz"),
|
||||
text_token!("ml"),
|
||||
text_token!("ltr"),
|
||||
text_token!("pound"),
|
||||
text_token!("pounds"),
|
||||
text_token!("lbs"),
|
||||
text_token!("lb"),
|
||||
text_token!("oz"),
|
||||
@ -279,7 +281,7 @@ pub fn measure(i: StrIter) -> abortable_parser::Result<StrIter, Measure> {
|
||||
"pint" | "pnt" => Volume(Pint(qty)),
|
||||
"gal" => Volume(Gal(qty)),
|
||||
"cnt" | "count" => Count(qty),
|
||||
"lb" => Weight(Pound(qty)),
|
||||
"lb" | "pound" => Weight(Pound(qty)),
|
||||
"oz" => Weight(Oz(qty)),
|
||||
"kg" | "kilogram" => Weight(Kilogram(qty)),
|
||||
"g" | "gram" => Weight(Gram(qty)),
|
||||
|
Loading…
x
Reference in New Issue
Block a user