After reading the Zod documentation, I found that trim only removes whitespace characters at the beginning and end. However, I am in need of a solution to remove all whitespace characters entirely. Here is an excerpt from my current setup (irrelevant code removed):
const stp = zodString({
invalid_type_error: '',
required_error: '',
}).trim()
.min(1, { message: '' })
.max(10, { message: '' })
.regex(reg, { message: '', });
Is there any way to incorporate a complete whitespace removal feature using zodString?