diff --git a/seed/challenges/01-front-end-development-certification/basic-javascript.json b/seed/challenges/01-front-end-development-certification/basic-javascript.json index 8bf64815af..1de5807475 100644 --- a/seed/challenges/01-front-end-development-certification/basic-javascript.json +++ b/seed/challenges/01-front-end-development-certification/basic-javascript.json @@ -3423,7 +3423,7 @@ "assert(entreeValue === 'hamburger' , 'message: The value of entreeValue should be \"hamburger\"');", "assert(typeof drinkValue === 'string' , 'message: drinkValue should be a string');", "assert(drinkValue === 'water' , 'message: The value of drinkValue should be \"water\"');", - "assert(code.match(/testObj\\[('|\")[^'\"]+\\1\\]/g).length > 1, 'message: You should use bracket notation twice');" + "assert(code.match(/testObj\\s*?\\[('|\")[^'\"]+\\1\\]/g).length > 1, 'message: You should use bracket notation twice');" ], "type": "waypoint", "challengeType": "1", @@ -3468,7 +3468,7 @@ "assert(typeof playerNumber === 'number', 'message: playerNumber should be a number');", "assert(typeof player === 'string', 'message: The variable player should be a string');", "assert(player === 'Montana', 'message: The value of player should be \"Montana\"');", - "assert(/testObj\\[\\s*playerNumber\\s*\\]/.test(code),'message: You should use bracket notation to access testObj');" + "assert(/testObj\\s*?\\[\\s*playerNumber\\s*\\]/.test(code),'message: You should use bracket notation to access testObj');" ], "type": "waypoint", "challengeType": "1",