mirror of
https://github.com/NodeBB/NodeBB.git
synced 2026-08-30 11:48:14 +02:00
fix case in search
This commit is contained in:
@@ -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