Skip to content

Commit

Permalink
Fixed issue #11894: Regex validation not working as expected when lea…
Browse files Browse the repository at this point in the history
…ding zeros are present in short text questions
  • Loading branch information
lacrioque committed Dec 5, 2016
1 parent 12b630d commit 6906d1c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/expressions/em_javascript.js
Expand Up @@ -373,7 +373,7 @@ function LEMimplode()
function LEMregexMatch(pattern,within)
{
try {
var reg = new RegExp(pattern.substr(1,pattern.length-2));
var reg = new RegExp(pattern.substring(1,pattern.length-2));
return reg.test(within);
}
catch (err) {
Expand Down

0 comments on commit 6906d1c

Please sign in to comment.