diff --git a/challenges/02-javascript-algorithms-and-data-structures/basic-javascript.json b/challenges/02-javascript-algorithms-and-data-structures/basic-javascript.json index b73b18fb26..2b788e7511 100644 --- a/challenges/02-javascript-algorithms-and-data-structures/basic-javascript.json +++ b/challenges/02-javascript-algorithms-and-data-structures/basic-javascript.json @@ -661,7 +661,7 @@ { "text": "myVar = myVar + 1; should be changed", "testString": - "assert(/var\\s*myVar\\s*=\\s*87;\\s*\\/*.*\\s*myVar\\+\\+;/.test(code), 'myVar = myVar + 1; should be changed');" + "assert(/var\\s*myVar\\s*=\\s*87;\\s*\\/*.*\\s*([+]{2}\\s*myVar|myVar\\s*[+]{2});/.test(code), 'myVar = myVar + 1; should be changed');" }, { "text": "Use the ++ operator", @@ -729,7 +729,7 @@ { "text": "myVar = myVar - 1; should be changed", "testString": - "assert(/var\\s*myVar\\s*=\\s*11;\\s*\\/*.*\\s*myVar--;/.test(code), 'myVar = myVar - 1; should be changed');" + "assert(/var\\s*myVar\\s*=\\s*11;\\s*\\/*.*\\s*([-]{2}\\s*myVar|myVar\\s*[-]{2});/.test(code), 'myVar = myVar - 1; should be changed');" }, { "text": "Use the -- operator on myVar",