switch from regex to includes

This commit is contained in:
Martin McKeaveney 2021-09-30 15:08:29 +01:00
parent a0f4043e13
commit 9f6961a90c
1 changed files with 1 additions and 1 deletions

View File

@ -40,7 +40,7 @@
$: enrichedApps = enrichApps($apps, $auth.user, sortBy)
$: filteredApps = enrichedApps.filter(app =>
new RegExp(searchTerm, "ig").test(app?.name)
app?.name?.toLowerCase().includes(searchTerm.toLowerCase())
)
const enrichApps = (apps, user, sortBy) => {