diff --git a/src/lib/regexanalyzer/regex.js b/src/lib/regexanalyzer/regex.js index 5931d20fd328f..c45b2e429cb82 100644 --- a/src/lib/regexanalyzer/regex.js +++ b/src/lib/regexanalyzer/regex.js @@ -1022,7 +1022,7 @@ var rnd = function( a, b ){ return Math.round((b-a)*Math.random()+a); }, if ( isRange && escaped === false && ']' === ch ) { isRange = false; - chars.push('-'); + chars.push(range[0], '-'); } if ( isRange )