Skip to content
Snippets Groups Projects

#3428652 - fix js error in Date Formats machine name generation when using accented characters in label

Open #3428652 - fix js error in Date Formats machine name generation when using accented characters in label
2 unresolved threads
2 unresolved threads
Files
2
@@ -88,7 +88,7 @@ public function form(array $form, FormStateInterface $form_state) {
'#default_value' => $this->entity->id(),
'#machine_name' => [
'exists' => [$this, 'exists'],
'replace_pattern' => '([^a-z0-9_]+)|(^custom$)',
'replace_pattern' => '[^A-Za-z0-9_]+|^custom$',
'error' => $this->t('The machine-readable name must be unique, and can only contain lowercase letters, numbers, and underscores. Additionally, it can not be the reserved word "custom".'),
],
];
Loading