Merge pull request #5675 from pmbenjamin/fix/plus-equals-waypoint-singleQuotes-issue
Fix Plus-Equals Concatenation Waypointpull/18182/head
commit
1d3bc2b556
|
@ -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",
|
||||
|
|
Loading…
Reference in New Issue