From 000a9304b79b2825c6f0606649b4971673667f62 Mon Sep 17 00:00:00 2001 From: Ivan Timofeev Date: Mon, 21 May 2012 16:54:25 +0200 Subject: lo-commit-stat: use utf8 to be able to query a dash in the bug title Change-Id: I691616575b5ea0b35e0ec0cc98db6772a7ad3b25 Signed-off-by: Petr Mladek --- bin/lo-commit-stat | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/bin/lo-commit-stat b/bin/lo-commit-stat index a61b32641747..157292448108 100755 --- a/bin/lo-commit-stat +++ b/bin/lo-commit-stat @@ -5,6 +5,7 @@ use strict; use LWP::UserAgent; +use utf8; my $main_repo="core"; my @pieces=("binfilter", "dictionaries", "help", "translations"); @@ -297,7 +298,7 @@ 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+ – // ) { print "$title\n"; return $title; } else { -- cgit v1.2.3