From efecdeceb8f58563623a105f464cce72a09768a9 Mon Sep 17 00:00:00 2001 From: Korrawit Pruegsanusak Date: Fri, 1 Jun 2012 00:24:22 +0700 Subject: lo-commit-stat: better formatting for bug fix commits * some used "resolved" instead of "resolves" * some didn't have a colon after that * some inserted a space after bug ID and a separator * some used a "-" as a separator Change-Id: Iee6a0f0346a257124e9488fc8f3bbdc59b32cbac --- bin/lo-commit-stat | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'bin/lo-commit-stat') diff --git a/bin/lo-commit-stat b/bin/lo-commit-stat index 1b495251c6e9..0697432e333f 100755 --- a/bin/lo-commit-stat +++ b/bin/lo-commit-stat @@ -42,9 +42,9 @@ sub search_bugs($$$$) # print " found $bug\n"; # remove bug number from the comment; it will be added later a standardized way $bug_orig =~ s/\#/\\#/; - $line =~ s/[Rr]esolves:\s*$bug_orig\s*//; + $line =~ s/[Rr]esolve[ds]:?\s*$bug_orig\s*//; $line =~ s/\s*-\s*$bug_orig\s*//; - $line =~ s/\(?$bug_orig\)?[:,]?\s*//; + $line =~ s/\(?$bug_orig\)?\s*[:,-]?\s*//; # bnc# is preferred over n# for novell bugs $bug =~ s/^n\#/bnc#/; -- cgit v1.2.3