Does trim() order matter in chaining? #5364
Unanswered
JoshuaHintze
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I've been arguing with Code Rabbit and the AI on zod's documentation. My question is
Does this
z.string().min(1).trim(), or this
z.string().trim().min(1)
give the same result?
Below is code rabbit's output
My local testing shows it doesn't matter but wanted to hear from others.
Thanks!
Beta Was this translation helpful? Give feedback.
All reactions