Skip to content

Commit

Permalink
Add back period validation
Browse files Browse the repository at this point in the history
  • Loading branch information
jkelastic committed Jan 18, 2020
1 parent 7868434 commit c5a4d31
Showing 1 changed file with 8 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,14 @@ export const schemas: Record<string, FormSchema> = {
),
}),
},
{
validator: startsWithField({
char: '.',
message: i18n.translate('xpack.idxMgmt.templateValidation.templateNamePeriodError', {
defaultMessage: 'A template name must not start with a period.',
}),
}),
},
{
validator: containsCharsField({
chars: INVALID_TEMPLATE_NAME_CHARS,
Expand Down

0 comments on commit c5a4d31

Please sign in to comment.