summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThorsten Behrens <tbehrens@suse.com>2012-06-23 16:08:10 +0200
committerAndras Timar <atimar@suse.com>2013-01-13 21:59:57 +0100
commite84e03155ea88a6682115b0b764632e3145d43d2 (patch)
treeaf0124e6814c6540586ca73f4dc40c8442781296
parentdd66f048d73fa331376f22e25fed852e59eef01e (diff)
Slightly more robust removal of bug title prefix.
Change-Id: Ic37589222831d03ec48689a077b1eb16a9199385 Signed-off-by: Petr Mladek <pmladek@suse.cz>
-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";