From: Andrew Lorimer Date: Tue, 11 Jun 2019 06:53:57 +0000 (+1000) Subject: fix hyphen bug in music regex X-Git-Url: https://git.lorimer.id.au/scripts.git/diff_plain/2c69d15513d67ad97123eb9d9cfa7e6a9cfdf27c?hp=c54417464c364474c297f9d2659f37f857344b39 fix hyphen bug in music regex --- diff --git a/i3blocks-music.pl b/i3blocks-music.pl index 4f71e2b..97deed4 100755 --- a/i3blocks-music.pl +++ b/i3blocks-music.pl @@ -28,7 +28,7 @@ push(@metadata, $artist) if $artist; my $title = qx(playerctl $player_arg metadata title); $title =~ s/(\s|\s\()[Ff]([et]at[. ].*|t.*)//; -$title =~ s/((\s(\(|\[).+(\)|\]).+)|(\s-\s.+))+//; +$title =~ s/((\s(\(|\[).+(\)|\]).*)|(\s-\s.+))//; push(@metadata, $title) if $title; for (@metadata){