From a840df3c6daf09c3eb5322f52305ea3845ffdd3e Mon Sep 17 00:00:00 2001 From: Ansh Saini Date: Mon, 28 Oct 2024 19:06:16 +0530 Subject: [PATCH] fix: handle empty spaces --- components/ProjectCard.tsx | 1 + 1 file changed, 1 insertion(+) diff --git a/components/ProjectCard.tsx b/components/ProjectCard.tsx index 3a66695..e37cb6e 100644 --- a/components/ProjectCard.tsx +++ b/components/ProjectCard.tsx @@ -54,6 +54,7 @@ const escapeSpecialCharacters = (string: string) => { }; const highlightText = (text: string, query: string) => { + query = query.trim(); if (!query) return text; try {