Browse files

Support for multiline

comments
  • Loading branch information...
1 parent 773bb45 commit 5fb18679069a0c1f65242c55a2b6edfbcda82cb7 @gudmundur gudmundur committed Feb 19, 2013
Showing with 2 additions and 2 deletions.
  1. +2 −2 index.js
View
4 index.js
@@ -36,8 +36,8 @@ exports = module.exports = function (since, until, opts) {
else if (m = /^Date:\s+(.+)/.exec(line)) {
commit.date = new Date(m[1]);
}
- else if (m = /^\s+(.+)/.exec(line)) {
- commit.message = m[1];
+ else if (m = /^\s+(\S.+)/.exec(line)) {
+ commit.message = commit.message ? commit.message + '\n' + m[1] : m[1];
}
}

0 comments on commit 5fb1867

Please sign in to comment.