mirror of
https://github.com/immich-app/immich.git
synced 2025-12-23 09:15:05 +03:00
8 lines
226 B
TypeScript
8 lines
226 B
TypeScript
|
|
export const removeAccents = (str: string) => {
|
||
|
|
return str.normalize('NFD').replaceAll(/[\u0300-\u036F]/g, '');
|
||
|
|
};
|
||
|
|
|
||
|
|
export const normalizeSearchString = (str: string) => {
|
||
|
|
return removeAccents(str.toLocaleLowerCase());
|
||
|
|
};
|