I am building a vue website using sanity as a backend. Instead of rewriting URLS in the router I want to have a pattern in place in sanity where slugs must only be lowercase letters so,
this-is-a-slug-123 would be valid but THIS-is-A-slug-123 would not be valid, I want to do this check as part of the slug validation to stop people being able to save pages with invalid slugs.
Sanity only has the required
or custom
validation rules available for the type slug. How can I validate the slug is solely using lowercase chars?