From e84e03155ea88a6682115b0b764632e3145d43d2 Mon Sep 17 00:00:00 2001 From: Thorsten Behrens Date: Sat, 23 Jun 2012 16:08:10 +0200 Subject: Slightly more robust removal of bug title prefix. Change-Id: Ic37589222831d03ec48689a077b1eb16a9199385 Signed-off-by: Petr Mladek --- bin/lo-commit-stat | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/bin/lo-commit-stat b/bin/lo-commit-stat index d2b6d8557049..4fb8a104f457 100755 --- a/bin/lo-commit-stat +++ b/bin/lo-commit-stat @@ -312,11 +312,11 @@ sub get_bug_name($$) my $response = $ua->get($url); if ($response->is_success) { my $title = $response->title; - if ( $title =~ s/^Bug \d+ – // ) { + if ( $title =~ s/^Bug \d+ \S+ // ) { print "$title\n"; return $title; } else { - print "warning: not found; using commit message\n"; + print "warning: not found; using commit message (only got $title)\n"; } } else { print "\n"; -- cgit v1.2.3