From 7f2b0dafb4e155b31366e7348971bc2e6a03ba2a Mon Sep 17 00:00:00 2001 From: Dylan Date: Sun, 14 Aug 2016 14:35:44 -0500 Subject: [PATCH] Update regex test to allow spaces flanking key in nested objects challenge --- .../basic-javascript.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 bc5999a515..bbede87148 100644 --- a/seed/challenges/01-front-end-development-certification/basic-javascript.json +++ b/seed/challenges/01-front-end-development-certification/basic-javascript.json @@ -4815,7 +4815,7 @@ ], "tests": [ "assert(gloveBoxContents === \"maps\", 'message: gloveBoxContents should equal \"maps\"');", - "assert(/=\\s*myStorage\\.car\\.inside\\[(\"|')glove box\\1\\]/g.test(code), 'message: Use dot and bracket notation to access myStorage');" + "assert(/=\\s*myStorage\\.car\\.inside\\[\\s*(\"|')glove box\\1\\s*\\]/g.test(code), 'message: Use dot and bracket notation to access myStorage');" ], "type": "waypoint", "challengeType": 1,