Skip to content

Commit

Permalink
Not allow # in index template name (elastic#195776)
Browse files Browse the repository at this point in the history
Closes [elastic#81870](elastic#81870)

## Summary

When creating a new Template, it did not prevent entering a #, but when
saving the template the user received an error. The hash has been added
to the list of invalid characters for the name.

https://github.com/user-attachments/assets/2b59d245-c96f-4215-ad89-a3201bef5e94
(cherry picked from commit 4339f84)
  • Loading branch information
SoniaSanzV committed Oct 16, 2024
1 parent d216933 commit 96112d4
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,4 @@

export const INVALID_INDEX_PATTERN_CHARS = ['\\', '/', '?', '"', '<', '>', '|'];

export const INVALID_TEMPLATE_NAME_CHARS = ['"', '*', '\\', ',', '?'];
export const INVALID_TEMPLATE_NAME_CHARS = ['"', '*', '\\', ',', '?', '#'];

0 comments on commit 96112d4

Please sign in to comment.