From 3ab69f158f824f9b752723fb68654302ed31d5c1 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/seed/challenges/01-front-end-development-certification/json-apis-and-ajax.json b/seed/challenges/01-front-end-development-certification/json-apis-and-ajax.json index 426a7008a8..011c0939f1 100644 --- a/seed/challenges/01-front-end-development-certification/json-apis-and-ajax.json +++ b/seed/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,