Skip to content

Commit 480377c

Browse files
committed
Support \r\n newline separators in log files
1 parent e96f5ba commit 480377c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/utils/algorithm.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -227,7 +227,7 @@ function getAlgorithmData(logLines: string[]): AlgorithmDataRow[] {
227227
}
228228

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

232232
const activityLogs = getActivityLogs(logLines);
233233
const data = getAlgorithmData(logLines);

0 commit comments

Comments
 (0)