normalizing also accented characters when creating new tags. see #732

This commit is contained in:
mic 2026-04-01 23:03:34 +02:00
parent f1f8d4d3eb
commit c50406bae0

View file

@ -519,6 +519,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