switch from regex to includes
This commit is contained in:
parent
a0f4043e13
commit
9f6961a90c
|
@ -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) => {
|
||||
|
|
Loading…
Reference in New Issue