Skip to content
Snippets Groups Projects
Commit 74140f51 authored by Stian Lyng Stræte's avatar Stian Lyng Stræte
Browse files

Merge branch '276-find-ingredient-with-lowercase' into 'main'

added lowercase

See merge request idatt2106-v23-03/backend!227
parents bc1c4437 11d96edd
No related branches found
No related tags found
No related merge requests found
......@@ -186,9 +186,9 @@ public class RecipeService {
// Compare the item_name on both lists
for (Object[] menuRow : weeklyMenu) {
String menuRowItemName = (String) menuRow[0];
String menuRowItemName = ((String) menuRow[0]).toLowerCase();
for (Object[] recipeProductRow : recipeProducts) {
String recipeProductRowItemName = (String) recipeProductRow[4];
String recipeProductRowItemName = ((String) recipeProductRow[4]).toLowerCase();
List<String> recipeProductWords = Arrays.asList(recipeProductRowItemName.split("\\s+"));
boolean allWordsContained = recipeProductWords.stream()
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment