From 4bdda62e8ca84325e42da56f5f12b1663d3087ff Mon Sep 17 00:00:00 2001 From: danicius Date: Mon, 12 Feb 2024 10:57:30 -0500 Subject: [PATCH] fix(curriculum): clarify instructions for calorie counter project step 31 by adding a code example (#53578) --- .../63bf5a518d54f63181ab639a.md | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/curriculum/challenges/english/15-javascript-algorithms-and-data-structures-22/learn-form-validation-by-building-a-calorie-counter/63bf5a518d54f63181ab639a.md b/curriculum/challenges/english/15-javascript-algorithms-and-data-structures-22/learn-form-validation-by-building-a-calorie-counter/63bf5a518d54f63181ab639a.md index e266ab80e3d..a647a56ec99 100644 --- a/curriculum/challenges/english/15-javascript-algorithms-and-data-structures-22/learn-form-validation-by-building-a-calorie-counter/63bf5a518d54f63181ab639a.md +++ b/curriculum/challenges/english/15-javascript-algorithms-and-data-structures-22/learn-form-validation-by-building-a-calorie-counter/63bf5a518d54f63181ab639a.md @@ -7,7 +7,15 @@ dashedName: step-31 # --description-- -The `e` in a number input can also be an uppercase `E`. Regex has a flag for this, however – the `i` flag, which stands for "insensitive". This flag makes your pattern case-insensitive. Add the `i` flag to your regex pattern. +The `e` in a number input can also be an uppercase `E`. Regex has a flag for this, however – the `i` flag, which stands for "insensitive". + +```js +/Hello/i +``` + +The following regex would match `hello`, `Hello`, `HELLO`, and even `hElLo` because of the `i` flag. This flag makes your pattern case-insensitive. + +Add the `i` flag to your regex pattern. # --hints--