Merge pull request #5876 from ShaggyTech/fix/less-specific-regex
Changed regex in last test to make it less specific.pull/5879/head^2
commit
0d5bf322ed
|
@ -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",
|
||||
|
|
Loading…
Reference in New Issue