'use strict';
module.exports = (function() {
  function replaceWithRange(expression, text, init, end) {
    var numbers = [];
    var last = parseInt(end);
    for(var i = parseInt(init); i <= last; i++) {
      numbers.push(i);
    }
    return expression.replace(new RegExp(text, 'gi'), numbers.join());
  }

  function convertRange(expression){
    var rangeRegEx = /(\d+)\-(\d+)/;
    var match = rangeRegEx.exec(expression);
    while(match !== null && match.length > 0){
      expression = replaceWithRange(expression, match[0], match[1], match[2]);
      match = rangeRegEx.exec(expression);
    }
    return expression;
  }

  function convertAllRanges(expressions){
    for(var i = 0; i < expressions.length; i++){
      expressions[i] = convertRange(expressions[i]);
    }
    return expressions;
  }

  return convertAllRanges;
}());




@@ -93,24 +93,25 @@
 nit, end) %7B%0A
+%0A
     var numb
@@ -158,34 +158,145 @@
     
-for(var i = parseInt(init)
+var first = parseInt(init);%0A%0A    if(first %3E last)%7B%0A      last = parseInt(init);%0A      first = parseInt(end);%0A    %7D%0A%0A    for(var i = first
 ; i 
@@ -334,22 +334,23 @@
 ush(i);%0A
-
     %7D%0A
+%0A
     retu

fix range conversion