chore: fix linting (#544)

* fix: eslint (server)

* fix: eslint (client)

* commit package lock file

* fix linting
This commit is contained in:
Philip Okugbe
2024-12-09 14:51:31 +00:00
committed by GitHub
parent e6bf4cdd6c
commit 532001fd82
22 changed files with 1076 additions and 245 deletions

View File

@ -456,7 +456,7 @@ export const getSuggestionItems = ({
const fuzzyMatch = (query: string, target: string) => {
let queryIndex = 0;
target = target.toLowerCase();
for (let char of target) {
for (const char of target) {
if (query[queryIndex] === char) queryIndex++;
if (queryIndex === query.length) return true;
}