From 0ffdfa36995335445327030e0e316bd95ac28380 Mon Sep 17 00:00:00 2001 From: Brock Whittaker Date: Mon, 24 Apr 2017 12:15:32 -0700 Subject: [PATCH] Change from `toLowerCase` => `toLocaleLowerCase`. This now respects the locale of the string set and will lowercase it respective of the character set rather than standard latin/English. --- static/js/list_rendering.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/static/js/list_rendering.js b/static/js/list_rendering.js index 2ff60b25e2..af0557c6b6 100644 --- a/static/js/list_rendering.js +++ b/static/js/list_rendering.js @@ -138,14 +138,14 @@ var list_render = (function () { if (opts.filter.element) { opts.filter.element.on(opts.filter.event || "input", function () { var self = this; - var value = self.value.toLowerCase(); + var value = self.value.toLocaleLowerCase(); meta.filtered_list = meta.list.filter(function (item) { if (opts.filter.callback) { return opts.filter.callback(item, value); } - return !!item.toLowerCase().match(value); + return !!item.toLocaleLowerCase().match(value); }); // clear and re-initialize the list with the newly filtered subset