3 module.exports = function(user) {
4 var input = [user.username];
5 if (user.displayName) {
6 // for matching "Andy Trevorah" with "andy", "trev", or "andy t"
7 var names = user.displayName.split(/\s/).filter(Boolean);
8 input = input.concat(user.displayName, names);