Skip to content

Commit

Permalink
fix: handle empty spaces
Browse files Browse the repository at this point in the history
  • Loading branch information
ansh-saini committed Oct 28, 2024
1 parent b215dce commit a840df3
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions components/ProjectCard.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,7 @@ const escapeSpecialCharacters = (string: string) => {
};

const highlightText = (text: string, query: string) => {
query = query.trim();
if (!query) return text;

try {
Expand Down

0 comments on commit a840df3

Please sign in to comment.