Skip to content

Commit 706d628

Browse files
fix(curriculum): refer to + as a quantifier in step 32 of Calorie Counter (freeCodeCamp#64968)
Co-authored-by: majestic-owl448 <26656284+majestic-owl448@users.noreply.github.com>
1 parent 5772ad6 commit 706d628

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

curriculum/challenges/english/blocks/workshop-calorie-counter/63bf5adfe2981b332eb007b6.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,17 +7,17 @@ dashedName: step-32
77

88
# --description--
99

10-
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]+`.
10+
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]+`.
1111

1212
# --hints--
1313

14-
You should add the `+` modifier to the character class before `e` in your regular expression.
14+
You should add the `+` quantifier to the character class before `e` in your regular expression.
1515

1616
```js
1717
assert.match(isInvalidInput.toString(), /regex\s*=\s*\/\[0-9\]\+e/);
1818
```
1919

20-
You should add the `+` modifier to the character class after `e` in your regular expression.
20+
You should add the `+` quantifier to the character class after `e` in your regular expression.
2121

2222
```js
2323
assert.match(isInvalidInput.toString(), /regex\s*=\s*\/\[0-9\]\+e\[0-9\]\+\//);

0 commit comments

Comments
 (0)