Skip to content

Commit 252b35f

Browse files
committed
fix(search): restrict search algorithm to title matching only
1 parent 35ba3fe commit 252b35f

1 file changed

Lines changed: 5 additions & 4 deletions

File tree

web-app/js/main.js

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -747,10 +747,11 @@ document.addEventListener("DOMContentLoaded", function () {
747747
var q = query.toLowerCase();
748748

749749
var catMatch = currentCategory === "all" || category === currentCategory;
750-
var searchMatch =
751-
title.toLowerCase().includes(q) ||
752-
desc.toLowerCase().includes(q) ||
753-
tags.includes(q);
750+
751+
// FIX FOR ISSUE #1032: Strict Title Matching
752+
// Removed description and hidden tag fuzzy-matching to prevent irrelevant
753+
// projects (like FLAMES Game) from appearing for unrelated queries.
754+
var searchMatch = title.toLowerCase().includes(q);
754755

755756
if (catMatch && searchMatch) {
756757
matches.push({

0 commit comments

Comments
 (0)