Learn Functional Programming by Building a Spreadsheet - Step 74 Accepts Regex That Don't Meet Criteria #54793
Labels
new javascript course
These are for issues dealing with the new JS curriculum
scope: curriculum
Lessons, Challenges, Projects and other Curricular Content in curriculum directory.
status: discussing
Under discussion threads. Closed as stale after 60 days of inactivity.
status: waiting triage
This issue needs help from moderators and users to reproduce and confirm its validity and fix.
type: bug
Issues that need priority attention. Platform, Curriculum tests (if broken completely), etc.
Describe the Issue
Lesson asks you to, "declare a regex variable. Assign it a regular expression that matches a number (including decimal numbers) followed by a * or / operator followed by another number," but will accept regex' from users that don't satisfy this criteria (examples /\d/ and /5/, matching anything with just a number, and anything with a 5 in it).
Related issue #54327 to address test being too strict.
Opened from forum post: https://forum.freecodecamp.org/t/learn-functional-programming-by-building-a-spreadsheet-step-74/690100/2
Affected Page
https://www.freecodecamp.org/learn/javascript-algorithms-and-data-structures-v8/learn-functional-programming-by-building-a-spreadsheet/step-74
Your code
Expected behavior
Lesson should pass when Regex matches against a number, followed by a * or / operator, followed by another number, but matches any number. Regex's that pass but should not (likely not limited to):
/5/
/\d/
/\*/
Screenshots
No response
System
Additional context
No response
The text was updated successfully, but these errors were encountered: