From 8a9a8710daa9d22bde56a187dc76061514021c2d Mon Sep 17 00:00:00 2001 From: benmcmahon100 Date: Fri, 14 Aug 2015 12:08:40 +0100 Subject: [PATCH] Allow optional white space when nesting arrays --- seed/challenges/basic-javascript.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/seed/challenges/basic-javascript.json b/seed/challenges/basic-javascript.json index 0eab58b846..1c0ac89b89 100644 --- a/seed/challenges/basic-javascript.json +++ b/seed/challenges/basic-javascript.json @@ -450,7 +450,7 @@ "Let's now go create a nested array called myArray." ], "tests":[ - "assert((function(){if(typeof(myArray) !== 'undefined' && typeof(myArray) === 'object' && typeof(myArray[0]) !== 'undefined' && typeof(myArray[0]) === 'object' && editor.getValue().match(/\\[(.*)?\\[/g).length >= 1 && editor.getValue().match(/\\](.*)?\\]/g).length >= 1){return(true);}else{return(false);}})(), 'myArray should contain at least one array');" + "assert((function(){if(typeof(myArray) !== 'undefined' && typeof(myArray) === 'object' && typeof(myArray[0]) !== 'undefined' && typeof(myArray[0]) === 'object' && editor.getValue().match(/\\[\s?\\[/g).length >= 1 && editor.getValue().match(/\\]\s?\\]/g).length >= 1){return(true);}else{return(false);}})(), 'myArray should contain at least one array');" ], "challengeSeed":[ "var ourArray = [[\"the universe\", \"everything\"], 42];",