We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 0283044 commit 749d118Copy full SHA for 749d118
packages/type/src/reflection/reflection.ts
@@ -1435,8 +1435,10 @@ export class ReflectionClass<T> {
1435
1436
export function extractTypeNameFromFunction(fn: Function): string {
1437
const str = fn.toString();
1438
- //either it starts with __Ω* or __\u{3a9}* (bun.js)
1439
- const match = str.match(/(?:__Ω|__\\u\{3a9\})([\w]+)/);
+ // either it starts with
+ // __Ω* or __ɵΩ* (node.js)
1440
+ // __\u{3a9}* or __\u{275}\u{3a9}* (bun.js)
1441
+ const match = str.match(/(?:__Ω|__\\u\{3a9\}|__ɵΩ|__\\u{275}\\u{3a9}*)([\w]+)/);
1442
if (match) {
1443
return match[1];
1444
}
0 commit comments