From 2c69d15513d67ad97123eb9d9cfa7e6a9cfdf27c Mon Sep 17 00:00:00 2001 From: Andrew Lorimer Date: Tue, 11 Jun 2019 16:53:57 +1000 Subject: [PATCH] fix hyphen bug in music regex --- i3blocks-music.pl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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){ -- 2.47.1