Minor changes

This commit is contained in:
Ionică Bizău 2015-02-01 15:36:08 +02:00
parent cbb3649822
commit 1e343a7e6e
1 changed files with 5 additions and 2 deletions

View File

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