From b924560dba0c4a96f6b25140dfb5703d77cef39f Mon Sep 17 00:00:00 2001 From: Stuart Date: Wed, 1 Jun 2016 14:20:43 +0100 Subject: [PATCH] FIX Comparison with the Equality Operator --- .../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 40f93ba7e1..4e645c9d94 100644 --- a/challenges/01-front-end-development-certification/basic-javascript.json +++ b/challenges/01-front-end-development-certification/basic-javascript.json @@ -2689,7 +2689,7 @@ "assert(testEqual(10) === \"Not Equal\", 'message: testEqual(10) should return \"Not Equal\"');", "assert(testEqual(12) === \"Equal\", 'message: testEqual(12) should return \"Equal\"');", "assert(testEqual(\"12\") === \"Equal\", 'message: testEqual(\"12\") should return \"Equal\"');", - "assert(code.match(/val\\s*==[\\s'\"\\d]+/g).length > 0, 'message: You should use the == operator');" + "assert(code.match(/==/g) && !code.match(/===/g), 'message: You should use the == operator');" ], "type": "waypoint", "challengeType": 1,