From 1e343a7e6ea75f61dd6ff07628513e8546d14a52 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ionic=C4=83=20Biz=C4=83u?= Date: Sun, 1 Feb 2015 15:36:08 +0200 Subject: [PATCH] Minor changes --- bin/git-stats | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/bin/git-stats b/bin/git-stats index 7509086..7d8a1de 100755 --- a/bin/git-stats +++ b/bin/git-stats @@ -78,14 +78,17 @@ switch (process.argv[2]) { c = data[i]; if (sq.indexOf(c) !== -1) { data[i] = theme.squares[c]; - } else if (/^(╔|═|╗|║|╝|═|╚|║|\-|\:|[a-z]|[0-9])$/i.test(c)) { + } else if (/^(╔|═|╗|║|╝|═|╚|║|\-|\:|\||[a-z]|[0-9])$/i.test(c)) { data[i] = Couleurs.fg(c, theme.foreground); } } data = data.join("").split("\n").map(function (c) { return Couleurs.bg(c, theme.background) - }).join("\n") + }); + + data.splice(data.length - 2, 1); + data = data.join("\n") } console.log(err || data);