fix(curriculum): clarify instructions for calorie counter project step 31 by adding a code example (#53578)

This commit is contained in:
danicius
2024-02-12 10:57:30 -05:00
committed by GitHub
parent 48280e144a
commit 4bdda62e8c

View File

@@ -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--