Merge pull request #46 from nuomiaa/patch-1

case insensitive search
This commit is contained in:
unitwk 2023-01-18 14:35:45 +08:00 committed by GitHub
commit 42bab5cf75
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