[Pkg-javascript-commits] [node-coveralls] 185/332: fix parsing of multiline header responses

Bastien Roucariès rouca at moszumanska.debian.org
Thu Nov 9 13:53:58 UTC 2017


This is an automated email from the git hooks/post-receive script.

rouca pushed a commit to branch master
in repository node-coveralls.

commit 8b4e46d994c23a6be8b458b18cfea8a94e325b70
Author: Schaaf, Martin <mschaaf at datameer.com>
Date:   Thu Sep 11 00:28:03 2014 +0200

    fix parsing of multiline header responses
    
    takes not known headers into account
---
 lib/fetchGitData.js | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

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) {

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-javascript/node-coveralls.git



More information about the Pkg-javascript-commits mailing list