[beta] Improve Instruction for "Regular Expressions: Match Single Character with Multiple Possibilities" #13044
Labels
help wanted
Open for all. You do not need permission to work on these.
scope: curriculum
Lessons, Challenges, Projects and other Curricular Content in curriculum directory.
Challenge match-single-character-with-multiple-possibilities has an issue.
User Agent is:
Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/56.0.2924.76 Safari/537.36
.This challenge asks me to "count the number of vowels". This made me think I should add
.length
to the expression evaluating to myresult
variable. Adding.length
fails the tests, while leaving it out lets me complete the challenge.Since the challenge isn't testing for a numerical value in the result variable, I suggest that we change the instruction and first test case to only ask campers to find all vowels.
To fix this, update the final sentence to
and update the message of the first test case:
assert(result.length == 25, 'message: You should find all 25 vowels.);
The text was updated successfully, but these errors were encountered: