Minor changes

This commit is contained in:
Ionică Bizău 2015-02-01 15:36:08 +02:00
parent cbb3649822
commit 1e343a7e6e

View file

@ -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);