From 1159a8dcaf25bf99e67ac3c612d48339fb3904a7 Mon Sep 17 00:00:00 2001 From: Ashraf Nazar Date: Wed, 22 Jan 2020 10:28:47 +0000 Subject: [PATCH] fix: Add edge case for mixed grouping of characters exercise, where "Frank Roosevelt" returns false (#38097) --- .../check-for-mixed-grouping-of-characters.english.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/curriculum/challenges/english/02-javascript-algorithms-and-data-structures/regular-expressions/check-for-mixed-grouping-of-characters.english.md b/curriculum/challenges/english/02-javascript-algorithms-and-data-structures/regular-expressions/check-for-mixed-grouping-of-characters.english.md index a21780d60e..fa707aa514 100644 --- a/curriculum/challenges/english/02-javascript-algorithms-and-data-structures/regular-expressions/check-for-mixed-grouping-of-characters.english.md +++ b/curriculum/challenges/english/02-javascript-algorithms-and-data-structures/regular-expressions/check-for-mixed-grouping-of-characters.english.md @@ -37,6 +37,8 @@ tests: testString: myRegex.lastIndex = 0; assert(myRegex.test('Eleanor Roosevelt')); - text: Your regex myRegex should return false for the string Franklin Rosevelt testString: myRegex.lastIndex = 0; assert(!myRegex.test('Franklin Rosevelt')); + - text: Your regex myRegex should return false for the string Frank Roosevelt + testString: myRegex.lastIndex = 0; assert(!myRegex.test('Frank Roosevelt')); - text: You should use .test() to test the regex. testString: assert(code.match(/myRegex.test\(\s*myString\s*\)/)); - text: Your result should return true.