Skip to content

Commit

Permalink
QT Search regex
Browse files Browse the repository at this point in the history
  • Loading branch information
Marekkon5 committed Feb 11, 2024
1 parent f8abd43 commit 4b638cf
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions client/src/views/QuickTag.vue
Original file line number Diff line number Diff line change
Expand Up @@ -343,11 +343,11 @@ function filterTracks() {
let newFilter = filter.value.toLowerCase();
// title, artist or track or tags
tracks = $1t.quickTag.value.tracks.filter((t) =>
t.title.toLowerCase().includes(newFilter) || t.path.toLowerCase().includes(newFilter) ||
t.artists.filter((a: any) => a.toLowerCase().includes(newFilter)).length > 0 ||
(t.mood??'').toLowerCase().includes(newFilter) ||
t.getAllCustom().some((i: CustomTagInfo) => i.value.toLowerCase().includes(newFilter)) ||
(t.genres??[]).some((i: any) => i.toLowerCase().includes(newFilter))
t.title.toLowerCase().match(newFilter) || t.path.toLowerCase().match(newFilter) ||
t.artists.filter((a: any) => a.toLowerCase().match(newFilter)).length > 0 ||
(t.mood??'').toLowerCase().match(newFilter) ||
t.getAllCustom().some((i: CustomTagInfo) => i.value.toLowerCase().match(newFilter)) ||
(t.genres??[]).some((i: any) => i.toLowerCase().match(newFilter))
);
}
if (!sortOption.value) return tracks;
Expand Down

0 comments on commit 4b638cf

Please sign in to comment.