diff options
| author | Gregg Caines <[email protected]> | 2014-09-21 19:05:23 -0700 |
|---|---|---|
| committer | Gregg Caines <[email protected]> | 2014-09-21 19:05:23 -0700 |
| commit | 0f24695bdceb58f33330c04179471af0a93efd91 (patch) | |
| tree | 1aab7981ace340e70f528de2b6024f7d50cb01ca | |
| parent | a760981ee62e13cf4cf36975e474df1426980577 (diff) | |
| parent | 537a87c5d289b8bd701779bb6339ea965942d4b5 (diff) | |
| download | node-coveralls-0f24695bdceb58f33330c04179471af0a93efd91.tar.xz node-coveralls-0f24695bdceb58f33330c04179471af0a93efd91.zip | |
Merge pull request #70 from mschaaf/patch-1
fix parsing of multiline header responses
| -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 a8b2bce..3bebda3 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\n(.*)/m; +var REGEX_COMMIT_DETAILS = /\nauthor (.+?) <(.+?)>.+\ncommitter (.+?) <(.+?)>.+\n?[\S\s]+?\n\n(.*)/m;; function fetchHeadDetails(git, cb) { exec('git cat-file -p ' + git.head.id, function(err, response) { |
