Merge pull request #5620 from SaintPeter/fix/construct-strings-with-variables

Allow Single Quotes in Construct Strings
This commit is contained in:
Logan Tegman
2015-12-30 22:28:25 -08:00

View File

@ -1042,7 +1042,7 @@
],
"tests": [
"assert(typeof myName !== 'undefined' && myName.length > 2, 'message: <code>myName</code> should be set to a string at least 3 characters long');",
"assert(code.match(/\"\\s*\\+\\s*myName\\s*\\+\\s*\"/g).length > 0, 'message: Use two <code>+</code> operators to build <code>myStr</code> with <code>myName<code> inside it');"
"assert(code.match(/[\"']\\s*\\+\\s*myName\\s*\\+\\s*[\"']/g).length > 0, 'message: Use two <code>+</code> operators to build <code>myStr</code> with <code>myName<code> inside it');"
],
"type": "waypoint",
"challengeType": "1",
@ -5143,4 +5143,4 @@
"isBeta": "true"
}
]
}
}