From e311b2dfb3098e279c85e06d8dcd47eeb7e428da Mon Sep 17 00:00:00 2001 From: Peter Weinberg Date: Mon, 20 Mar 2017 19:29:58 -0400 Subject: [PATCH] fix(challenge): modify regex in increment a number challenge --- .../basic-javascript.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/seed/challenges/02-javascript-algorithms-and-data-structures/basic-javascript.json b/seed/challenges/02-javascript-algorithms-and-data-structures/basic-javascript.json index 90c6339a70..80366d749f 100755 --- a/seed/challenges/02-javascript-algorithms-and-data-structures/basic-javascript.json +++ b/seed/challenges/02-javascript-algorithms-and-data-structures/basic-javascript.json @@ -520,7 +520,7 @@ ], "tests": [ "assert(myVar === 88, 'message: myVar should equal 88');", - "assert(/myVar\\s*\\=.*myVar/.test(code) === false, 'message: myVar = myVar + 1; should be changed');", + "assert(/myVar\\s*\\=.*myVar\\s*\\+\\s*1/.test(code) === false, 'message: myVar = myVar + 1; should be changed');", "assert(/[+]{2}\\s*myVar|myVar\\s*[+]{2}/.test(code), 'message: Use the ++ operator');", "assert(/var myVar = 87;/.test(code), 'message: Do not change code above the line');" ],