pomoc3 will no longer have random args

This commit is contained in:
Histmy 2022-02-20 12:56:51 +01:00
parent 1875e289ed
commit 5906bfe895

View File

@ -47,8 +47,8 @@ const runEvent = (name: string, args: any[]) => {
};
const getTenParam = (fn: RunFunkce): string | undefined => fn.toString()
.match(/(?:function\s.*?)?\(([^)]*)\)/)![1]
.split(",")[1]
.match(/(?:function\s.*?)?\(([^)]*)\)|\w+ =>/)![1]
?.split(",")[1]
?.trim();
const fnToArg = (fn: RunFunkce | string) => {