code: function getChanges(log, regex) {
        var changes = [];
        var match;
  
        while ((match = regex.exec(log))) {
          var change = '';
  
          for (var i = 1, len = match.length; i < len; i++) {
            change += match[i];
          }
  
          changes.push(change.trim());
        }
  
        return changes;
      }
docs: Loop through each match and build the array of changes that will be passed to the template.