mirror of
https://github.com/sasjs/adapter.git
synced 2026-01-11 14:20:05 +00:00
feat(*): recreate package with new name
This commit is contained in:
7
src/utils/parseGeneratedCode.ts
Normal file
7
src/utils/parseGeneratedCode.ts
Normal file
@@ -0,0 +1,7 @@
|
||||
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");
|
||||
};
|
||||
Reference in New Issue
Block a user