Skip to content

Commit

Permalink
lint fix
Browse files Browse the repository at this point in the history
  • Loading branch information
lelemm committed Jun 5, 2024
1 parent 8696956 commit 29bd12f
Showing 1 changed file with 10 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -92,10 +92,16 @@ export function defaultFilterSuggestion<T extends Item>(
suggestion: T,
value: string,
) {
return getItemName(suggestion).toLowerCase().normalize("NFD").replace(/\p{Diacritic}/gu, "")
.includes(
value.toLowerCase().normalize("NFD").replace(/\p{Diacritic}/gu, "")
);
return getItemName(suggestion)
.toLowerCase()
.normalize('NFD')
.replace(/\p{Diacritic}/gu, '')
.includes(
value
.toLowerCase()
.normalize('NFD')
.replace(/\p{Diacritic}/gu, ''),
);
}

function defaultFilterSuggestions<T extends Item>(
Expand Down

0 comments on commit 29bd12f

Please sign in to comment.