Skip to content
This repository has been archived by the owner on Jun 17, 2021. It is now read-only.

Commit

Permalink
Fix problem with 'ь' in search (zhukov#1512)
Browse files Browse the repository at this point in the history
Config.LatinizeMap have rule for 'ь' but it are not applied.
  • Loading branch information
vesai authored and zhukov committed Dec 8, 2017
1 parent 0e1631d commit 15fdefc
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion app/js/lib/utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit 15fdefc

Please sign in to comment.