Honor the case of the user's subject in the first autocomplete option

(imported from commit 7820fc7c8c45498407f857c20755f1bcdc292e1f)
This commit is contained in:
Jeff Arnold 2013-07-03 17:32:41 -04:00
parent 51f9ace595
commit b96f41a991
1 changed files with 1 additions and 1 deletions

View File

@ -200,7 +200,7 @@ exports.initialize = function () {
if (subject_dict.hasOwnProperty(stream_name)) {
// If query is an exact match, we don't need to add it to the array of options
for (i = 0; i < subject_dict[stream_name].length; i++) {
if (subject_dict[stream_name][i].toLowerCase() === query.toLowerCase()) {
if (subject_dict[stream_name][i] === query) {
return subject_dict[stream_name];
}
}