From 3dea81aa2d826e855589cb87af84204f7ee65fc7 Mon Sep 17 00:00:00 2001 From: Jeremy Wall Date: Tue, 23 Nov 2021 11:16:39 -0500 Subject: [PATCH] handle pound as a unit --- recipes/src/parse.rs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/recipes/src/parse.rs b/recipes/src/parse.rs index 65f7339..e9d9168 100644 --- a/recipes/src/parse.rs +++ b/recipes/src/parse.rs @@ -204,6 +204,8 @@ make_fn!(unit, 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 { "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)),