diff options
| author | Schaaf, Martin <[email protected]> | 2014-09-11 00:28:03 +0200 |
|---|---|---|
| committer | Schaaf, Martin <[email protected]> | 2014-09-11 00:28:03 +0200 |
| commit | 8b4e46d994c23a6be8b458b18cfea8a94e325b70 (patch) | |
| tree | 511af89a36272d551afbc82179661c744a3f4a2b /lib/fetchGitData.js | |
| parent | a760981ee62e13cf4cf36975e474df1426980577 (diff) | |
| download | node-coveralls-8b4e46d994c23a6be8b458b18cfea8a94e325b70.tar.xz node-coveralls-8b4e46d994c23a6be8b458b18cfea8a94e325b70.zip | |
fix parsing of multiline header responses
takes not known headers into account
Diffstat (limited to 'lib/fetchGitData.js')
| -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..18af04e 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?[\w\s]+?\n\n(.*)/m;; function fetchHeadDetails(git, cb) { exec('git cat-file -p ' + git.head.id, function(err, response) { |
