Skip to content

Commit

Permalink
fix(test): make less strict about whitespace (#36705)
Browse files Browse the repository at this point in the history
  • Loading branch information
moT01 authored and ojeytonwilliams committed Aug 28, 2019
1 parent a03602a commit 46d67de
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -35,7 +35,7 @@ For the cat with the "id" of 2, print to the console the second value in the <co
```yml
tests:
- text: Your code should use bracket and dot notation to access the proper code name, and print "Loki" to the console.
testString: assert(code.match(/(?:json\[2\]\.codeNames\[1\]|json\[2\]\[('|")codeNames\1\]\[1\])/g));
testString: assert(code.match(/console\s*\.\s*log\s*\(\s*json\s*\[2\]\s*(\.\s*codeNames|\[\s*('|`|")codeNames\2\s*\])\s*\[\s*1\s*\]\s*\)/g));

```

Expand Down

0 comments on commit 46d67de

Please sign in to comment.