summaryrefslogtreecommitdiff
path: root/bin
diff options
context:
space:
mode:
authorKorrawit Pruegsanusak <detective.conan.1412@gmail.com>2012-06-01 00:24:22 +0700
committerKorrawit Pruegsanusak <detective.conan.1412@gmail.com>2012-06-01 00:24:22 +0700
commitefecdeceb8f58563623a105f464cce72a09768a9 (patch)
tree50f13baf30eb2896be466539d8ef7916be02987f /bin
parent9feed9c7a51d4dbba269971d165746bd36bb4a67 (diff)
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
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 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#/;