mirror of
https://github.com/9001/copyparty.git
synced 2025-08-17 09:02:15 -06:00
fix ansify prepending bracket to all logfiles
This commit is contained in:
parent
fe73f2d579
commit
f4a3bbd237
|
@ -3288,9 +3288,10 @@ var showfile = (function () {
|
|||
for (var a = 0; a < src.length; a++) {
|
||||
var m = /^([0-9;]+)m/.exec(src[a]);
|
||||
if (!m) {
|
||||
if (a || src[a])
|
||||
out.push('\x1b[' + src[a]);
|
||||
if (a)
|
||||
out.push('\x1b[');
|
||||
|
||||
out.push(src[a]);
|
||||
continue;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue