From 706d62864150f0e5590c9cc905e4f03547018a45 Mon Sep 17 00:00:00 2001 From: Lakshay Goyal Date: Fri, 2 Jan 2026 19:45:43 +0530 Subject: [PATCH] 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> --- .../workshop-calorie-counter/63bf5adfe2981b332eb007b6.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/curriculum/challenges/english/blocks/workshop-calorie-counter/63bf5adfe2981b332eb007b6.md b/curriculum/challenges/english/blocks/workshop-calorie-counter/63bf5adfe2981b332eb007b6.md index b4cace99131..a29d0ee8c39 100644 --- a/curriculum/challenges/english/blocks/workshop-calorie-counter/63bf5adfe2981b332eb007b6.md +++ b/curriculum/challenges/english/blocks/workshop-calorie-counter/63bf5adfe2981b332eb007b6.md @@ -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\]\+\//);