1
0
Fork 0
mirror of synced 2024-07-03 13:30:46 +12:00

switch from regex to includes

This commit is contained in:
Martin McKeaveney 2021-09-30 15:08:29 +01:00
parent a0f4043e13
commit 9f6961a90c

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) => {