mirror of
https://github.com/9001/copyparty.git
synced 2026-03-13 03:33:45 +10:00
fix ansify prepending bracket to all logfiles
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user