Skip to content

Commit 09f9d33

Browse files
feat: Removed the unuesd function extractExtraSystemVariables (#1028)
2 parents 5fa2557 + 1d5d960 commit 09f9d33

File tree

1 file changed

+0
-14
lines changed

1 file changed

+0
-14
lines changed

libs/shared/src/utils/output.helpers.ts

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -148,17 +148,3 @@ export function getRecordFormat(chunkFormat: string) {
148148
chunkFormat: JSON.stringify(format),
149149
};
150150
}
151-
152-
export function extractExtraSystemVariables(format: string): string[] {
153-
const variablePattern = /\{\{([^}]+)\}\}/g;
154-
const variables: string[] = [];
155-
let match;
156-
157-
while ((match = variablePattern.exec(format)) !== null) {
158-
variables.push(match[1]);
159-
}
160-
161-
const systemVariables = variables.filter((variable) => variable.startsWith('extra.'));
162-
163-
return systemVariables;
164-
}

0 commit comments

Comments
 (0)