Skip to content

High performance self-hosted photo and video management solution.

236 B
Raw Blame
export const removeAccents = (str: string) => {
  return str.normalize('NFD').replaceAll(/[\u{300}-\u{36F}]/gu, '');
};

export const normalizeSearchString = (str: string) => {
  return removeAccents(str.toLocaleLowerCase().trim());
};