From e63d9fde969c6ef77ce3b94c3fc30ed6a708642d Mon Sep 17 00:00:00 2001 From: Manish Giri Date: Tue, 3 Jan 2017 00:30:06 -0500 Subject: [PATCH] Allow bracket notation and search for dot notation --- .../json-apis-and-ajax.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/challenges/01-front-end-development-certification/json-apis-and-ajax.json b/challenges/01-front-end-development-certification/json-apis-and-ajax.json index 426a7008a8..011c0939f1 100644 --- a/challenges/01-front-end-development-certification/json-apis-and-ajax.json +++ b/challenges/01-front-end-development-certification/json-apis-and-ajax.json @@ -367,7 +367,7 @@ "" ], "tests": [ - "assert(code.match(/val.imageLink/gi), 'message: You should have used the imageLink property to display the images.');" + "assert(code.match(/val\\.imageLink/gi) || code.match(/val\\[\"imageLink\"\\]/gi), 'message: You should have used the imageLink property to display the images.');" ], "type": "waypoint", "challengeType": 0,