normalizing also accented characters when creating new tags. see #732
This commit is contained in:
parent
9df3667e75
commit
da82fb0b6d
1 changed files with 2 additions and 0 deletions
|
|
@ -517,6 +517,8 @@ function getTagsKeyFromLabel(tag_names, all_tags_list) {
|
|||
}
|
||||
|
||||
function sanitizeString(input) {
|
||||
// Replaces accented characters with their non-accented version
|
||||
input = input.normalize("NFD").replace(/[\u0300-\u036f]/g, "");
|
||||
// Define the regex to match valid characters
|
||||
const validChar = /^[^ ()/{%*<>"]+$/;
|
||||
// Filter out invalid characters from the string
|
||||
|
|
|
|||
Loading…
Reference in a new issue