Skip to content

searching app should ignore special characters

when i am searching for "Počasí" (weather app), i am not pressing the "č,í" character,

as a user i would expect the algorithm to ignore exact matches,

and search for appName.removeDiacritics() → "pocasi" not its appName → "počasí"

function removeDiacritics(str) {
    return str
        .normalize('NFD')
        .replace(/[\u0300-\u036f]/g, '');
}