Skip to content

Commit

Permalink
Support \r\n newline separators in log files
Browse files Browse the repository at this point in the history
  • Loading branch information
jmerle committed Apr 6, 2024
1 parent e96f5ba commit 480377c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/utils/algorithm.ts
Original file line number Diff line number Diff line change
Expand Up @@ -227,7 +227,7 @@ function getAlgorithmData(logLines: string[]): AlgorithmDataRow[] {
}

export function parseAlgorithmLogs(logs: string, summary?: AlgorithmSummary): Algorithm {
const logLines = logs.trim().split('\n');
const logLines = logs.trim().split(/\r?\n/);

const activityLogs = getActivityLogs(logLines);
const data = getAlgorithmData(logLines);
Expand Down

0 comments on commit 480377c

Please sign in to comment.