mirror of
https://github.com/freeCodeCamp/freeCodeCamp.git
synced 2026-09-24 23:01:18 +08:00
fix(curriculum): refer to + as a quantifier in step 32 of Calorie Counter (#64968)
Co-authored-by: majestic-owl448 <26656284+majestic-owl448@users.noreply.github.com>
This commit is contained in:
co-authored by
majestic-owl448
parent
5772ad6a12
commit
706d628641
+3
-3
@@ -7,17 +7,17 @@ dashedName: step-32
|
||||
|
||||
# --description--
|
||||
|
||||
The `+` modifier in a regex allows you to match a pattern that occurs one or more times. To match your digit pattern one or more times, add a plus after each of the digit character classes. For example: `[0-9]+`.
|
||||
The `+` quantifier in a regular expression allows you to match a pattern that occurs one or more times. To match your digit pattern one or more times, add a plus after each of the digit character classes. For example: `[0-9]+`.
|
||||
|
||||
# --hints--
|
||||
|
||||
You should add the `+` modifier to the character class before `e` in your regular expression.
|
||||
You should add the `+` quantifier to the character class before `e` in your regular expression.
|
||||
|
||||
```js
|
||||
assert.match(isInvalidInput.toString(), /regex\s*=\s*\/\[0-9\]\+e/);
|
||||
```
|
||||
|
||||
You should add the `+` modifier to the character class after `e` in your regular expression.
|
||||
You should add the `+` quantifier to the character class after `e` in your regular expression.
|
||||
|
||||
```js
|
||||
assert.match(isInvalidInput.toString(), /regex\s*=\s*\/\[0-9\]\+e\[0-9\]\+\//);
|
||||
|
||||
Reference in New Issue
Block a user