We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 18064f4 commit d56610cCopy full SHA for d56610c
page/script.js
@@ -290,12 +290,15 @@ function search() {
290
291
let match = false;
292
if (recipe.title.toLowerCase().includes(query.toLowerCase())) match = true;
293
+ for (const mealType of recipe.mealType) {
294
+ if (mealType.toLowerCase().includes(query.toLowerCase())) match = true;
295
+ };
296
for (const ingredient of recipe.ingredients) {
297
if (ingredient.toLowerCase().includes(query.toLowerCase())) match = true;
- }
298
299
for (const instruction of recipe.instructions) {
300
if (instruction.toLowerCase().includes(query.toLowerCase())) match = true;
301
302
303
if (match) {
304
let dietaryRestrictions = [];
0 commit comments