From 0df76dc7b716a05cc1aeed7ddbea70f7fd6f2844 Mon Sep 17 00:00:00 2001 From: Pavel Tsurbeleu Date: Tue, 18 Aug 2015 15:17:26 -0700 Subject: [PATCH] fix issue #2124 and rephrase the challenge a bit to avoid confusion --- seed/challenges/basic-javascript.json | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/seed/challenges/basic-javascript.json b/seed/challenges/basic-javascript.json index 1096e02868..2c97249b0a 100644 --- a/seed/challenges/basic-javascript.json +++ b/seed/challenges/basic-javascript.json @@ -1093,12 +1093,12 @@ "You can invert any match by using the uppercase version of the selector \\s versus \\S for example." ], "tests":[ - "assert(test === 36, 'Your RegEx should have found seven spaces in the testString.');", - "assert(editor.getValue().match(/\\/\\\\S\\/gi/gi), 'You should be using the following expression /\\+S/gi to find the spaces in the testString.');" + "assert(test === 49, 'Your RegEx should have found forty nine non-space characters in the testString.');", + "assert(editor.getValue().match(/\\/\\\\S\\/gi/gi), 'You should be using the following expression /\\S/gi to find non-space characters in the testString.');" ], "challengeSeed":[ "var test = (function(){", - " var testString = \"How many spaces are there in this sentence?\";", + " var testString = \"How many non-space characters are there in this sentence?\";", "", " // Only change code below this line.", "",