@jclind/ingredient-parser 1.2.7 → 1.2.8

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -20,7 +20,7 @@ const removeConsecutiveTs = (str) => {
20
20
  const replaceModifiedWords = (words, str) => {
21
21
  let updatedStr = str;
22
22
  words.forEach(({ original, modified }) => {
23
- updatedStr = updatedStr.replace(modified, original);
23
+ updatedStr = updatedStr.replace(modified.toLowerCase(), original.toLowerCase());
24
24
  });
25
25
  return updatedStr;
26
26
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@jclind/ingredient-parser",
3
- "version": "1.2.7",
3
+ "version": "1.2.8",
4
4
  "description": "Parses given sentence including ingredient information and attempts to return quantity, measurement and ingredient data",
5
5
  "keywords": [
6
6
  "recipe",