Skip to content

Commit 91791d6

Browse files
committed
trim Zod string before length assertion
1 parent 8661f9e commit 91791d6

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/utils/ZodModel.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
import { z } from 'zod';
22

3-
export const NonEmptyZodString = z.string().min(1);
4-
export const CfnNameZodString = z.string().min(1).max(128);
3+
export const NonEmptyZodString = z.string().trim().min(1);
4+
export const CfnNameZodString = z.string().trim().min(1).max(128);

0 commit comments

Comments
 (0)