From b935a60ae74d3bdbe6b2a277a94df2a576a705c8 Mon Sep 17 00:00:00 2001 From: Artyom Savchenko Date: Mon, 27 Oct 2025 12:57:49 +0700 Subject: [PATCH] Fix case sensitive search for issues (#10153) * Fix case sensitive search for issues Signed-off-by: Artem Savchenko * Update plugins/tracker-resources/src/index.ts Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> Signed-off-by: Artyom Savchenko --------- Signed-off-by: Artem Savchenko Signed-off-by: Artyom Savchenko Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> --- plugins/tracker-resources/src/index.ts | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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) }