Fix Plus-Equals Concatenation Waypoint

This commit is contained in:
Peter Benjamin
2015-12-31 16:03:10 -08:00
parent 8c77f76f70
commit 12d17aa8c8

View File

@ -1005,7 +1005,7 @@
], ],
"tests": [ "tests": [
"assert(myStr === \"This is the first sentence. This is the second sentence.\", 'message: <code>myStr</code> should have a value of <code>This is the first sentence. This is the second sentence.</code>');", "assert(myStr === \"This is the first sentence. This is the second sentence.\", 'message: <code>myStr</code> should have a value of <code>This is the first sentence. This is the second sentence.</code>');",
"assert(code.match(/\\w\\s*\\+=\\s*\"/g).length > 1 && code.match(/\\w\\s*\\=\\s*\"/g).length > 1, 'message: Use the <code>+=</code> operator to build <code>myStr</code>');" "assert(code.match(/\\w\\s*\\+=\\s*[\"']/g).length > 1 && code.match(/\\w\\s*\\=\\s*[\"']/g).length > 1, 'message: Use the <code>+=</code> operator to build <code>myStr</code>');"
], ],
"type": "waypoint", "type": "waypoint",
"challengeType": "1", "challengeType": "1",