From e5f42c39c70fd02fb55d4cac495de6474da7a432 Mon Sep 17 00:00:00 2001 From: Stuart Taylor Date: Thu, 16 Jun 2016 00:00:37 +0100 Subject: [PATCH] Revert "Fix/Prefilter JSON" --- .../json-apis-and-ajax.json | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) 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 47cc9d2d84..d64d6f00ab 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 @@ -419,8 +419,7 @@ "" ], "tests": [ - "assert(code.match(/json.filter\\(\\s*?function\\(/), 'message: You should be making use of the .filter method. ');", - "assert(code.match(/return\\s*?\\(\\s*?\\w+\\.id\\s*?!==\\s*?1\\s*?\\);/), 'message: Your function should only return images with a value not equal to 1. ');" + "assert(code.match(/filter/gi), 'message: You should be making use of the .filter method.');" ], "type": "waypoint", "challengeType": 0,