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
  • Loading branch information
SoniaSanzV authored Oct 16, 2024
1 parent e470999 commit 4339f84
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 4339f84

Please sign in to comment.