fix searching with different languages

This commit is contained in:
Laura Klünder 2019-12-27 12:45:47 +01:00
parent 5fe5580497
commit e144156b8a

View file

@ -115,7 +115,7 @@ c3nav = {
location.elem = c3nav._build_location_html(location);
location.title_words = location.title.toLowerCase().split(/\s+/);
location.subtitle_words = location.subtitle.toLowerCase().split(/\s+/);
location.match = ' ' + location.title_words.join(' ') + ' ' + location.subtitle_words.join(' ') + ' ' + location.slug + ' ' + location.add_search;
location.match = ' ' + location.title_words.join(' ') + ' ' + location.subtitle_words.join(' ') + ' ' + location.slug + ' ' + location.add_search.toLowerCase();
locations.push(location);
locations_by_id[location.id] = location;
if (location.point && location.label_settings) {