Open AerunDev opened 1 month ago
We can use this function:
const normalize = (str: string) => {
return str
.normalize('NFD')
.replace(/\p{Diacritic}/gu, '')
.toLowerCase();
};
Example:
const result = normalize('Mâchouille');
console.log(result); // machouille
Please make sure it's properly applied to @designSystem/Select
As a User I would like the Select research to work even if there are accents in what I typed So that I'll be able to search for data even if they contain accents in their name
Context
This is a regression due to the new implemented Select. For example,
Mâchouille
should be found even if I only typeMachouille
in French.Acceptance criterias
@designSystem/Select