From 52c5cbd764da55d14fa0838f3d276f41adfc055d Mon Sep 17 00:00:00 2001 From: Brandon Eichler Date: Mon, 4 Jan 2016 18:55:56 -0600 Subject: [PATCH] Change regex in last test to make it less specific. Closes #5857 The last test will now allow a space before the closing semicolon. --- .../basic-javascript.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/challenges/01-front-end-development-certification/basic-javascript.json b/challenges/01-front-end-development-certification/basic-javascript.json index bdb0af0ed9..205589be32 100644 --- a/challenges/01-front-end-development-certification/basic-javascript.json +++ b/challenges/01-front-end-development-certification/basic-javascript.json @@ -988,7 +988,7 @@ ], "tests": [ "assert(myStr === \"This is the start. This is the end.\", 'message: myStr should have a value of This is the start. This is the end.');", - "assert(/var\\s+myStr\\s*=\\s*([\"'])This is the start\\. \\1\\s*\\+\\s*([\"'])This is the end\\.\\2/.test(code), 'message: Use the + operator to build myStr');" + "assert(/var\\s+myStr\\s*=\\s*([\"'])This is the start\\. \\1\\s*\\+\\s*([\"'])This is the end\\.([\"'])/.test(code), 'message: Use the + operator to build myStr');" ], "type": "waypoint", "challengeType": "1",