mirror of
https://github.com/NodeBB/NodeBB.git
synced 2026-01-05 23:30:36 +01:00
fix case in search
This commit is contained in:
@@ -1147,6 +1147,8 @@ var async = require('async'),
|
||||
return Groups.getMembers(data.groupName, 0, -1, callback);
|
||||
}
|
||||
|
||||
query = query.toLowerCase();
|
||||
|
||||
async.waterfall([
|
||||
function(next) {
|
||||
Groups.getMembers(data.groupName, 0, -1, next);
|
||||
|
||||
@@ -77,6 +77,7 @@ module.exports = function(User) {
|
||||
if (!query) {
|
||||
return callback(null, []);
|
||||
}
|
||||
query = query.toLowerCase();
|
||||
var min = query;
|
||||
var max = query.substr(0, query.length - 1) + String.fromCharCode(query.charCodeAt(query.length - 1) + 1);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user