Skip to content

Commit

Permalink
Fix mismatched case in following search; closes #805
Browse files Browse the repository at this point in the history
  • Loading branch information
Evan Prodromou committed Jan 14, 2014
1 parent aca982e commit 73880ed
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/model/person.js
Original file line number Diff line number Diff line change
Expand Up @@ -326,7 +326,8 @@ Person.match = function(q) {
},
function(err, person) {
if (err) throw err;
if (person.displayName && person.displayName.indexOf(q) != -1) {
// Case-insensitive search
if (person.displayName && person.displayName.toLowerCase().indexOf(q.toLowerCase()) != -1) {
this(null, true);
} else {
this(null, false);
Expand Down

0 comments on commit 73880ed

Please sign in to comment.