Skip to content

Commit

Permalink
fix(sdk): missing slash
Browse files Browse the repository at this point in the history
Signed-off-by: Michaël <[email protected]>
  • Loading branch information
michael-0acf4 committed Feb 26, 2024
1 parent 3150ffb commit 64e21ff
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion typegraph/node/sdk/src/runtimes/deno.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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)) {
Expand Down

0 comments on commit 64e21ff

Please sign in to comment.