Skip to content

Commit

Permalink
Save a regex - thanks @mikecappela!
Browse files Browse the repository at this point in the history
  • Loading branch information
michaelherger committed Aug 7, 2024
1 parent 1a6ff8d commit 4f9b031
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions Slim/Control/Commands.pm
Original file line number Diff line number Diff line change
Expand Up @@ -3467,8 +3467,7 @@ sub _playlistXtracksCommand_parseSearchTerms {
}
}

if ($sort && $sort =~ /tracks_persistent/) {
$sort =~ s/tracks_persistent/persistent/g;
if ($sort && $sort =~ s/tracks_persistent/persistent/g) {
$sort =~ s/\btracks\./me./g;
$joinMap{'persistent'} = 'persistent';
}
Expand Down

0 comments on commit 4f9b031

Please sign in to comment.