1
0
Fork 0
mirror of https://github.com/portainer/portainer.git synced 2025-07-23 15:29:42 +02:00

fix(logs): extra CRs in downloading container logs EE-1973 (#6041)

This commit is contained in:
Hao Zhang 2021-11-19 12:21:16 +08:00 committed by GitHub
parent 33871eb447
commit b596d0febd
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 6 additions and 2 deletions

View file

@ -46,7 +46,7 @@ angular.module('portainer.docker').factory('LogHelper', [
function stripHeaders(logs) {
logs = logs.substring(8);
logs = logs.replace(/\n(.{8})/g, '\n\r');
logs = logs.replace(/\r?\n(.{8})/g, '\n');
return logs;
}