tasks/changelog.js
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;
    }
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;
    }
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 ; }
Loop through each match and build the array of changes that will be passed to the template.
Loop through each match and build the array of changes that will be passed to the template .