From 139e43fd109499f04aa64ff3e2c0cd8e3aa00013 Mon Sep 17 00:00:00 2001 From: SaintPeter Date: Wed, 30 Dec 2015 22:13:20 -0800 Subject: [PATCH] Allow Single Quotes in Construct Strings --- .../basic-javascript.json | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/seed/challenges/01-front-end-development-certification/basic-javascript.json b/seed/challenges/01-front-end-development-certification/basic-javascript.json index 21b88ea249..760089b61b 100644 --- a/seed/challenges/01-front-end-development-certification/basic-javascript.json +++ b/seed/challenges/01-front-end-development-certification/basic-javascript.json @@ -1040,7 +1040,7 @@ ], "tests": [ "assert(typeof myName !== 'undefined' && myName.length > 2, 'message: myName should be set to a string at least 3 characters long');", - "assert(code.match(/\"\\s*\\+\\s*myName\\s*\\+\\s*\"/g).length > 0, 'message: Use two + operators to build myStr with myName inside it');" + "assert(code.match(/[\"']\\s*\\+\\s*myName\\s*\\+\\s*[\"']/g).length > 0, 'message: Use two + operators to build myStr with myName inside it');" ], "type": "waypoint", "challengeType": "1", @@ -5141,4 +5141,4 @@ "isBeta": "true" } ] -} +} \ No newline at end of file