diff --git a/curriculum/challenges/english/02-javascript-algorithms-and-data-structures/regular-expressions/match-non-whitespace-characters.english.md b/curriculum/challenges/english/02-javascript-algorithms-and-data-structures/regular-expressions/match-non-whitespace-characters.english.md index 0a2f7db0fb..1155d2a366 100644 --- a/curriculum/challenges/english/02-javascript-algorithms-and-data-structures/regular-expressions/match-non-whitespace-characters.english.md +++ b/curriculum/challenges/english/02-javascript-algorithms-and-data-structures/regular-expressions/match-non-whitespace-characters.english.md @@ -30,7 +30,7 @@ Change the regex countNonWhiteSpace to look for multiple non-whites tests: - text: Your regex should use the global flag. testString: assert(countNonWhiteSpace.global); - - text: Your regex should use the shorthand character \S/code> to match all non-whitespace characters. + - text: Your regex should use the shorthand character \S to match all non-whitespace characters. testString: assert(/\\S/.test(countNonWhiteSpace.source)); - text: Your regex should find 35 non-spaces in "Men are from Mars and women are from Venus." testString: assert("Men are from Mars and women are from Venus.".match(countNonWhiteSpace).length == 35);