diff options
| author | Gregg Caines <[email protected]> | 2013-12-19 11:43:35 -0800 |
|---|---|---|
| committer | Gregg Caines <[email protected]> | 2013-12-19 11:43:35 -0800 |
| commit | 83bf18e0dc28054dd3f63f34d37fd7525e133e96 (patch) | |
| tree | ca80b3fa4ef27bc8d8f52dd15ecbd463b0242665 | |
| parent | ba9a8b9d4dc7d262d7deeadafbf863efe8c55808 (diff) | |
| parent | 827171edaf22878b47ba86399f03cbed25e0e2ab (diff) | |
| download | node-coveralls-83bf18e0dc28054dd3f63f34d37fd7525e133e96.tar.xz node-coveralls-83bf18e0dc28054dd3f63f34d37fd7525e133e96.zip | |
Merge pull request #31 from paazmaya/master
Allow a line appear after committer in git info
| -rw-r--r-- | lib/fetchGitData.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/fetchGitData.js b/lib/fetchGitData.js index 1633bd5..a8b2bce 100644 --- a/lib/fetchGitData.js +++ b/lib/fetchGitData.js @@ -59,7 +59,7 @@ function fetchBranch(git, cb) { }); } -var REGEX_COMMIT_DETAILS = /\nauthor (.+?) <(.+?)>.+\ncommitter (.+?) <(.+?)>.+\n\n(.*)/m; +var REGEX_COMMIT_DETAILS = /\nauthor (.+?) <(.+?)>.+\ncommitter (.+?) <(.+?)>.+\n?.+?\n\n(.*)/m; function fetchHeadDetails(git, cb) { exec('git cat-file -p ' + git.head.id, function(err, response) { |
