From 15fdefcc19f010fb0381cc6670cb1a33ef4281ee Mon Sep 17 00:00:00 2001 From: Aleksey Veselovskiy Date: Fri, 8 Dec 2017 22:37:55 +0300 Subject: [PATCH] =?UTF-8?q?Fix=20problem=20with=20'=D1=8C'=20in=20search?= =?UTF-8?q?=20(#1512)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Config.LatinizeMap have rule for 'ь' but it are not applied. --- app/js/lib/utils.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app/js/lib/utils.js b/app/js/lib/utils.js index 15232bc7..98ad9208 100644 --- a/app/js/lib/utils.js +++ b/app/js/lib/utils.js @@ -477,7 +477,8 @@ function versionCompare (ver1, ver2) { var hasTag = text.charAt(0) == '%' text = text.replace(badCharsRe, ' ').replace(trimRe, '') text = text.replace(/[^A-Za-z0-9]/g, function (ch) { - return Config.LatinizeMap[ch] || ch + var latinizeCh = Config.LatinizeMap[ch] + return latinizeCh !== undefined ? latinizeCh : ch }) text = text.toLowerCase() if (hasTag) {