diff --git a/packages/schema/src/plugins/zod/transformer.ts b/packages/schema/src/plugins/zod/transformer.ts index 9bc013c01..ca714f1ad 100644 --- a/packages/schema/src/plugins/zod/transformer.ts +++ b/packages/schema/src/plugins/zod/transformer.ts @@ -90,7 +90,7 @@ export default class Transformer { return `${this.name}.schema`; } - private delegateCreateUpdateInputRegex = new RegExp(`(\\S+)(Unchecked)?(Create|Update).*Input`); + private delegateCreateUpdateInputRegex = /(\S+)(Unchecked)?(Create|Update).*Input/; generateObjectSchemaFields(generateUnchecked: boolean) { let fields = this.fields;