case insensitive search

This commit is contained in:
糯米 2023-01-18 03:54:35 +08:00 committed by GitHub
parent 9ec8b0e624
commit 43129246a8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -54,7 +54,7 @@ routerApp.on("instance/select", (ctx, data) => {
// keyword condition query
const queryWrapper = InstanceSubsystem.getQueryMapWrapper();
let result = queryWrapper.select<Instance>((v) => {
if (!v.config.nickname.includes(condition.instanceName)) return false;
if (!v.config.nickname.toLowerCase().includes(condition.instanceName.toLowerCase())) return false;
return true;
});
// paging function