blob: 17b13b7da2775effd6a227685df62aed24aab920 [file]
// Length-preserving normalization keeps Lunr highlight positions bound to the
// original text. Russian spelling with е and ё shares one search token.
function normalizeRussianSearch(value) {
return value.replace(/ё/g, 'е').replace(/Ё/g, 'Е').replace(/[()\[\]{},"';`]/g, ' ');
}
module.exports = {normalizeRussianSearch};