mirror of
https://github.com/sasjs/adapter.git
synced 2026-01-10 05:40:06 +00:00
8 lines
266 B
TypeScript
8 lines
266 B
TypeScript
export const parseGeneratedCode = (log: string) => {
|
|
const startsWith = 'MPRINT'
|
|
const isGeneratedCodeLine = (line: string) =>
|
|
line.trim().startsWith(startsWith)
|
|
const logLines = log.split('\n').filter(isGeneratedCodeLine)
|
|
return logLines.join('\r\n')
|
|
}
|