sveltia / sveltia-cms

Alternative to Netlify/Decap CMS. Fast, lightweight, Git-based headless CMS. Modern UX, first-class i18n support, open source & free. Made with Svelte.
MIT License
750 stars 34 forks source link

Unable to save, if field settings contains a `pattern` #112

Closed samtrion closed 4 months ago

samtrion commented 4 months ago

image

It is not possible for me to save currently, although the regular expression is fulfilled. Other variants of the regular expression are also impossible to save.

Configuration:

fields:
  - label: Slug
    name: slug
    widget: string
    i18n: duplicate
    pattern: ["[a-z0-9]{3,}", "The slug should be at least 3 characters long and only contain lowercase letters and numbers."]
    hint: "The slug is used to generate the URL of the author page. It should be unique and not contain any special characters."
kyoshino commented 4 months ago

Checking...

kyoshino commented 4 months ago

Shipped v0.12.3 to address this and other validation errors 🙏🏼