mirror of
https://github.com/sasjs/adapter.git
synced 2026-01-11 22:30:05 +00:00
7 lines
254 B
TypeScript
7 lines
254 B
TypeScript
export const parseSourceCode = (log: string): string => {
|
|
const isSourceCodeLine = (line: string) =>
|
|
line.trim().substring(0, 10).trimStart().match(/^\d/)
|
|
const logLines = log.split('\n').filter(isSourceCodeLine)
|
|
return logLines.join('\r\n')
|
|
}
|