ts-ghost icon indicating copy to clipboard operation
ts-ghost copied to clipboard

bug: emails containing a plus sign "+" (e.g. [email protected]) fail Zod validation in browse filter section

Open the-leonat opened this issue 6 months ago โ€ข 0 comments

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

  1. Use the browse filter on a resource that allows filtering by email.

  2. Pass a valid email containing a plus sign:

    await client.members.browse({ filter: "email:'[email protected]'" });
    
  3. Observe that Zod validation throws an error.

Additional information

No response

๐Ÿ‘จโ€๐Ÿ‘งโ€๐Ÿ‘ฆ Contributing

  • [ ] ๐Ÿ™‹โ€โ™‚๏ธ Yes, I'd be down to file a PR fixing this bug!

the-leonat avatar Aug 10 '25 16:08 the-leonat