From 64e21ff75c693adecb1fe7f68198649ba45d5e63 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micha=C3=ABl?= Date: Mon, 26 Feb 2024 21:47:57 +0300 Subject: [PATCH] fix(sdk): missing slash MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Michaƫl --- typegraph/node/sdk/src/runtimes/deno.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/typegraph/node/sdk/src/runtimes/deno.ts b/typegraph/node/sdk/src/runtimes/deno.ts index fd3c17e10..c9dafe371 100644 --- a/typegraph/node/sdk/src/runtimes/deno.ts +++ b/typegraph/node/sdk/src/runtimes/deno.ts @@ -44,7 +44,7 @@ function stringifyFn(code: string | Function) { const namedFnMatch = source.match(/function\s*(\*?\s*[a-zA-Z0-9_]+)/); if (namedFnMatch) { const [, name] = namedFnMatch; - if (name.replace(/s/g, "").startsWith("*")) { + if (name.replace(/\s/g, "").startsWith("*")) { throw new Error(`Generator function "${name}" not supported`); } if (/function\s[a-zA-Z0-9_]+\(\) { \[native code\] }/.test(source)) {