ts-ghost
ts-ghost copied to clipboard
bug: emails containing a plus sign "+" (e.g. [email protected]) fail Zod validation in browse filter section
Provide environment information
latest ghost latest ts-ghost/admin-api
Describe the bug
When using the browse filter with an email address containing a plus sign (+), the Zod schema validation fails, even though such addresses are valid.
Target Ghost Blog version
v5.1
To reproduce
-
Use the
browsefilter on a resource that allows filtering by email. -
Pass a valid email containing a plus sign:
await client.members.browse({ filter: "email:'[email protected]'" }); -
Observe that Zod validation throws an error.
Additional information
No response
๐จโ๐งโ๐ฆ Contributing
- [ ] ๐โโ๏ธ Yes, I'd be down to file a PR fixing this bug!