mirror of
https://github.com/freeCodeCamp/freeCodeCamp.git
synced 2026-05-01 01:00:36 -04:00
fix(curriculum): clarify instructions for calorie counter project step 31 by adding a code example (#53578)
This commit is contained in:
@@ -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--
|
||||
|
||||
|
||||
Reference in New Issue
Block a user