fix(web): trim strings before searching/comparing (#31614)
This commit is contained in:
@@ -3,5 +3,5 @@ export const removeAccents = (str: string) => {
|
||||
};
|
||||
|
||||
export const normalizeSearchString = (str: string) => {
|
||||
return removeAccents(str.toLocaleLowerCase());
|
||||
return removeAccents(str.toLocaleLowerCase().trim());
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user