From 25632b9aa089cf9ea6f8c92d940215586d669b32 Mon Sep 17 00:00:00 2001 From: Tabakhase Date: Thu, 22 Sep 2016 23:38:55 +0200 Subject: [PATCH] Fix malformed payload when bundeling multiple commits --- git-slack-hook | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/git-slack-hook b/git-slack-hook index 06ff58b..57df057 100755 --- a/git-slack-hook +++ b/git-slack-hook @@ -247,7 +247,7 @@ function notify() { | perl -p -e 's/@@@@@\n+/@@@@@/mg' \ | sed -e 's/\\/\\\\/g' \ | sed -e 's/"/\\"/g' \ - | sed -e 's/&&&&&\(.*\);;;;;/{ \"fallback\" : \"\", \"color\" : \"good\", \"fields\" : [{"title":"\1","value":"/g' \ + | sed -e 's/&&&&&\([^;]*\);;;;;/{ "fallback" : "", "color" : "good", "fields" : [{"title":"\1","value":"/g' \ | sed -e 's/@@@@@/","short":false},]},/g' \ | sed -e 's/,\]/]/' )