From 5e3de0be681208e4dc17c61b470b02859b3a8099 Mon Sep 17 00:00:00 2001 From: benmcmahon100 Date: Sun, 16 Aug 2015 20:17:06 +0100 Subject: [PATCH] Fixed a challenge test on modify array data with indexes --- challenges/basic-javascript.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/challenges/basic-javascript.json b/challenges/basic-javascript.json index fa5c36c439..fa59afe650 100644 --- a/challenges/basic-javascript.json +++ b/challenges/basic-javascript.json @@ -513,7 +513,7 @@ ], "tests":[ "assert((function(){if(typeof(myArray) != 'undefined' && myArray[0] == 3 && myArray[1] == 2 && myArray[2] == 3){return(true);}else{return(false);}})(), 'myArray should now be [3,2,3]');", - "assert((function(){if(editor.getValue().match(/[0]/g).length >= 2 && editor.getValue().match(/=/g).length >= 2){return(true);}else{return(false);}})(), 'You should be using indexes to modify the values in myArray');" + "assert((function(){if(editor.getValue().match(/[0]/g).length >= 1 && editor.getValue().match(/=/g).length >= 2){return(true);}else{return(false);}})(), 'You should be using indexes to modify the values in myArray');" ], "challengeSeed":[ "var ourArray = [1,2,3];",