usr/lib/byobu/.notify_osd: fix minor regex error, LP: #764813

This commit is contained in:
Dustin Kirkland 2011-05-03 11:50:31 -05:00
commit da4920e74e
2 changed files with 4 additions and 1 deletions

3
debian/changelog vendored
View file

@ -4,6 +4,9 @@ byobu (3.34) unreleased; urgency=low
* usr/lib/byobu/updates_available: add support for ArchLinux in the * usr/lib/byobu/updates_available: add support for ArchLinux in the
updates-available script, LP: #767546 updates-available script, LP: #767546
[ Jeffrey William Edwards ]
* usr/lib/byobu/.notify_osd: fix minor regex error, LP: #764813
-- Dustin Kirkland <kirkland@ubuntu.com> Tue, 19 Apr 2011 16:34:35 -0400 -- Dustin Kirkland <kirkland@ubuntu.com> Tue, 19 Apr 2011 16:34:35 -0400
byobu (3.33-0ubuntu1) natty; urgency=low byobu (3.33-0ubuntu1) natty; urgency=low

View file

@ -36,7 +36,7 @@ while (<STDIN>) {
} }
$msg = $_; $msg = $_;
$msg =~ s/\[[^,]*, //; # strip the leading "[timestamp, " $msg =~ s/\[[^,]*, //; # strip the leading "[timestamp, "
$msg =~ s/ \] /: /; # replace the " ] " following the indicator name, with ":" $msg =~ s/\] /: /; # replace the " ] " following the indicator name, with ":"
$msg =~ s/\s+/ /g; # collapse multi-whitespace into one $msg =~ s/\s+/ /g; # collapse multi-whitespace into one
$msg =~ s/\s+$//g; # strip trailing whitespace $msg =~ s/\s+$//g; # strip trailing whitespace
$msg =~ s/^\s+//g; # strip leading whitespace $msg =~ s/^\s+//g; # strip leading whitespace