Merge pull request #5675 from pmbenjamin/fix/plus-equals-waypoint-singleQuotes-issue

Fix Plus-Equals Concatenation Waypoint
pull/18182/head
Rex Schrader 2015-12-31 18:19:24 -08:00
commit 1d3bc2b556
1 changed files with 1 additions and 1 deletions

View File

@ -1005,7 +1005,7 @@
],
"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(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",
"challengeType": "1",