The panel output me this error when I tried to save an existing page: preg_match(): Unknown modifier '^'
Didnāt have that error before. I tried other pattern that may achieved what I want but still have an error (different depending on which regex I use indeed).
The same pattern (that did work before the update), edit with the Solution pattern still not working in a structure field.
When I click to add a new entry, I got a negative error in the panel āCannot read property ālengthā of nullā where the handle field is supposed to be. Gif preview
Hereās my structure field:
site_colors:
label:
en: Site Colors
fr: Couleurs du site
type: structure
width: 1/2
translate: false
empty:
en: No color yet
fr: Pas encore de couleur
fields:
autoid:
type: hidden
translate: false
name:
label:
en: Name
fr: Nom
type: text
width: 1/3
handle:
label:
en: Handle
fr: Identifiant
type: text
width: 1/3
pattern: "^[a-z0-9]+(?:-[a-z0-9]+)*$"
help:
en: "Format: my-color"
fr: "Format : ma-couleur"
color:
label:
en: Color
fr: Couleur
type: color
width: 1/3
editableAlpha: false
default: "#FFFFFF"