From d0b5bcd0b09a1b654df9241db1797c5be7550a38 Mon Sep 17 00:00:00 2001 From: benmcmahon100 Date: Fri, 14 Aug 2015 20:26:05 +0100 Subject: [PATCH] Fixed a weird error involving RegEx and single quotes --- 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 1c0ac89b89..573ee8a698 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(/\\[\s?\\[/g).length >= 1 && editor.getValue().match(/\\]\s?\\]/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];",