handle pound as a unit

This commit is contained in:
Jeremy Wall 2021-11-23 11:16:39 -05:00
parent bf633b50d5
commit 3dea81aa2d

View File

@ -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)),