mirror of
https://github.com/IonicaBizau/git-stats.git
synced 2024-12-22 21:32:10 +01:00
Minor changes
This commit is contained in:
parent
cbb3649822
commit
1e343a7e6e
1 changed files with 5 additions and 2 deletions
|
@ -78,14 +78,17 @@ switch (process.argv[2]) {
|
||||||
c = data[i];
|
c = data[i];
|
||||||
if (sq.indexOf(c) !== -1) {
|
if (sq.indexOf(c) !== -1) {
|
||||||
data[i] = theme.squares[c];
|
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[i] = Couleurs.fg(c, theme.foreground);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
data = data.join("").split("\n").map(function (c) {
|
data = data.join("").split("\n").map(function (c) {
|
||||||
return Couleurs.bg(c, theme.background)
|
return Couleurs.bg(c, theme.background)
|
||||||
}).join("\n")
|
});
|
||||||
|
|
||||||
|
data.splice(data.length - 2, 1);
|
||||||
|
data = data.join("\n")
|
||||||
}
|
}
|
||||||
|
|
||||||
console.log(err || data);
|
console.log(err || data);
|
||||||
|
|
Loading…
Reference in a new issue