Allow Single Quotes in Construct Strings

This commit is contained in:
SaintPeter 2015-12-30 22:13:20 -08:00
parent f895959b27
commit 0aaec41357

View File

@ -1040,7 +1040,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",
@ -5141,4 +5141,4 @@
"isBeta": "true"
}
]
}
}