export function getFunctionCalls(logs: string): string[] {
const pattern: RegExp = /\b(\w+)(([^)]*))\s+(block=/gm;
const matches: RegExpMatchArray | null = logs.match(pattern);
const functionCalls = matches?.map((entry) => entry.toString()) as string[];
return functionCalls;
}
export function getFunctionCalls(logs: string): string[] {
const pattern: RegExp = /\b(\w+)(([^)]*))\s+(block=/gm;
const matches: RegExpMatchArray | null = logs.match(pattern);
const functionCalls = matches?.map((entry) => entry.toString()) as string[];
return functionCalls;
}