diff --git a/plugins/tracker-resources/src/index.ts b/plugins/tracker-resources/src/index.ts index e84579fd7c..4015e1a640 100644 --- a/plugins/tracker-resources/src/index.ts +++ b/plugins/tracker-resources/src/index.ts @@ -211,8 +211,11 @@ export async function queryIssue ( q2._id = q._id } const named = await client.findAll(_class, q2, { limit: 200 }) + const lowerSearch = search.toLowerCase() for (const d of named) { - if (d.identifier.includes(search) || d.title.includes(search)) { + const identifierLower = d.identifier.toLowerCase() + const titleLower = d.title.toLowerCase() + if (identifierLower.includes(lowerSearch) || titleLower.includes(lowerSearch)) { if (!numbered.has(d._id)) { numbered.set(d._id, d) }