From cd69c9cb67d8814e741be3b6c5e532d96ce9f118 Mon Sep 17 00:00:00 2001 From: dhcodes Date: Fri, 26 Aug 2016 10:10:27 -0500 Subject: [PATCH] combine backslash tests for quoting strings challenge --- .../basic-javascript.json | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/challenges/01-front-end-development-certification/basic-javascript.json b/challenges/01-front-end-development-certification/basic-javascript.json index 22cac7bc2f..113f26d606 100644 --- a/challenges/01-front-end-development-certification/basic-javascript.json +++ b/challenges/01-front-end-development-certification/basic-javascript.json @@ -1137,9 +1137,8 @@ "var myStr = 'Link';" ], "tests": [ - "assert(!/\\\\/g.test(code), 'message: Remove all the backslashes (\\)');", - "assert(code.match(/\"/g).length === 4 && code.match(/'/g).length === 2, 'message: You should have two single quotes ' and four double quotes "');", - "assert(myStr === 'Link', 'message: Only remove the backslashes \\ used to escape quotes.');" + "assert(!/\\\\/g.test(code) && myStr === 'Link', 'message: Remove all the backslashes (\\)');", + "assert(code.match(/\"/g).length === 4 && code.match(/'/g).length === 2, 'message: You should have two single quotes ' and four double quotes "');" ], "type": "waypoint", "challengeType": 1,