summaryrefslogtreecommitdiff
path: root/bin
diff options
context:
space:
mode:
authorThorsten Behrens <tbehrens@suse.com>2012-06-23 16:08:10 +0200
committerThorsten Behrens <tbehrens@suse.com>2012-06-25 13:59:58 +0200
commit418df9282d772d21eebb56f858fd84036d9b691a (patch)
treec651df418b20f3370d0ce202bbeb54b57602a369 /bin
parent7fb922b32b3fa612ebc8b7dfbc7e53ed990b40a0 (diff)
Slightly more robust removal of bug title prefix.
Change-Id: Ic37589222831d03ec48689a077b1eb16a9199385
Diffstat (limited to 'bin')
-rwxr-xr-xbin/lo-commit-stat4
1 files 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";