Skip to content
Snippets Groups Projects
Commit 11d96edd authored by Stian Lyng's avatar Stian Lyng
Browse files

added lowercase

parent 372f69c8
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