From eead40033e760ff7bc51d3b507c849f2d6842126 Mon Sep 17 00:00:00 2001 From: Jake Boone Date: Thu, 18 Jan 2024 10:12:16 -0700 Subject: [PATCH] Add `ignoreUOMs` option --- CHANGELOG.md | 4 ++- README.md | 61 +++++++++++++++++++++---------------- src/constants.ts | 1 + src/parseIngredient.ts | 11 +++++-- src/parseIngredientTests.ts | 22 +++++++++++++ src/types.ts | 24 +++++++++++++++ 6 files changed, 93 insertions(+), 30 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 014aa0d..f72579b 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -7,7 +7,9 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0. ## [Unreleased] -- N/A +### Added + +- New option `ignoreUOMs`, an array of strings that will _not_ be considered units of measure. ## [v1.1.1] - 2024-01-15 diff --git a/README.md b/README.md index a0221ae..590b210 100644 --- a/README.md +++ b/README.md @@ -64,7 +64,7 @@ In the browser, all exports including the `parseIngredient` function are availab ```html