You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The library so grate but how can I custom the value of search input, because I'm from Vietnamese and when I search get unexpected result.
Example: I have 2 folders with the name: "Bông" and "Bong".
I expect when search with "bo" it will show 2 above folders, but I just get 1 folder is "Bong".
The code of my logic to change the value when enter the search input likely:
const removeAccents = (str: string) => {
return str
.normalize("NFD")
.replace(/[\u0300-\u036f]/g, "")
.replace(/đ/g, "d")
.replace(/Đ/g, "D");
};
The text was updated successfully, but these errors were encountered:
The library so grate but how can I custom the value of search input, because I'm from Vietnamese and when I search get unexpected result.
Example: I have 2 folders with the name: "Bông" and "Bong".
I expect when search with "bo" it will show 2 above folders, but I just get 1 folder is "Bong".
The code of my logic to change the value when enter the search input likely:
const removeAccents = (str: string) => {
return str
.normalize("NFD")
.replace(/[\u0300-\u036f]/g, "")
.replace(/đ/g, "d")
.replace(/Đ/g, "D");
};
The text was updated successfully, but these errors were encountered: