Merge pull request #10207 from dhcodes/fix/allow-spaces-nested-objects-test

Update regex test to allow spaces flanking key in nested objects chal…
pull/10230/head
Eric Leung 2016-08-15 21:34:17 -07:00 committed by GitHub
commit 40533db0c8
1 changed files with 1 additions and 1 deletions

View File

@ -4815,7 +4815,7 @@
],
"tests": [
"assert(gloveBoxContents === \"maps\", 'message: <code>gloveBoxContents</code> should equal \"maps\"');",
"assert(/=\\s*myStorage\\.car\\.inside\\[(\"|')glove box\\1\\]/g.test(code), 'message: Use dot and bracket notation to access <code>myStorage</code>');"
"assert(/=\\s*myStorage\\.car\\.inside\\[\\s*(\"|')glove box\\1\\s*\\]/g.test(code), 'message: Use dot and bracket notation to access <code>myStorage</code>');"
],
"type": "waypoint",
"challengeType": 1,