From 743bdeba7dc37a0ab07b4ed6474e8787d361b545 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/challenges/01-front-end-development-certification/json-apis-and-ajax.json b/challenges/01-front-end-development-certification/json-apis-and-ajax.json index 47cc9d2d84..d64d6f00ab 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 @@ -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,