Merge pull request #5876 from ShaggyTech/fix/less-specific-regex

Changed regex in last test to make it less specific.
pull/5879/head^2
Logan Tegman 2016-01-04 17:45:07 -08:00
commit 0d5bf322ed
1 changed files with 1 additions and 1 deletions

View File

@ -988,7 +988,7 @@
],
"tests": [
"assert(myStr === \"This is the start. This is the end.\", 'message: <code>myStr</code> should have a value of <code>This is the start. This is the end.</code>');",
"assert(/var\\s+myStr\\s*=\\s*([\"'])This is the start\\. \\1\\s*\\+\\s*([\"'])This is the end\\.\\2/.test(code), 'message: Use the <code>+</code> operator to build <code>myStr</code>');"
"assert(/var\\s+myStr\\s*=\\s*([\"'])This is the start\\. \\1\\s*\\+\\s*([\"'])This is the end\\.([\"'])/.test(code), 'message: Use the <code>+</code> operator to build <code>myStr</code>');"
],
"type": "waypoint",
"challengeType": "1",