code: function rangeToLines(range) {
      range = (range || '').split(':');
      if (range.length != 2) {
          return null;
      }
  
      return {
          start: Number(range[0]) - 1,
          end: Number(range[1]) - 1
      }
  }
docs: Convert a range to a {start,end} object