From 9123944a8c801137a75daef4042b7caac2bd83fc Mon Sep 17 00:00:00 2001 From: newtextdoc1111 Date: Thu, 8 May 2025 00:07:35 +0900 Subject: [PATCH] fix: Removed redundant code for exact matches --- web/js/autocomplete.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/web/js/autocomplete.js b/web/js/autocomplete.js index 63cb278..aed2200 100644 --- a/web/js/autocomplete.js +++ b/web/js/autocomplete.js @@ -571,7 +571,7 @@ function findCompletionCandidates(query) { // Check primary tag against all variations for exact match first for (const variation of queryVariations) { - if (lowerTag === variation || lowerTag === variation.replace(/[\-_\s]/g, '')) { + if (lowerTag === variation) { isExactMatch = true; matched = true; break;