Skip to content

Commit

Permalink
IE11 compatibility 2
Browse files Browse the repository at this point in the history
  • Loading branch information
jakeboone02 committed Feb 12, 2021
1 parent feb22ef commit d89373d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,7 @@ const parseIngredient = (ingText: string): Ingredient[] => {
// Check for a known unit of measure
const firstSpace = oIng.description.indexOf(' ');
const firstWord = oIng.description.substring(0, firstSpace);
if (UOM_LIST.includes(firstWord)) {
if (UOM_LIST.indexOf(firstWord) >= 0) {
oIng.unitOfMeasure = firstWord;
oIng.description = oIng.description.substring(firstSpace + 1);
}
Expand Down

0 comments on commit d89373d

Please sign in to comment.