summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorNeil Moore <neil@s-z.org>2014-07-14 08:52:26 -0500
committerNeil Moore <neil@s-z.org>2014-07-14 08:52:26 -0500
commit0fa25d80abf150a87968dce389d10027f1729e27 (patch)
tree98dd7032c04001595f7ece573483cf6de5e1f7b9 /lib
parent482c264b7e16fe7d1822f838416f2615796c9ad8 (diff)
downloadcrawlbot-0fa25d80abf150a87968dce389d10027f1729e27.tar.gz
crawlbot-0fa25d80abf150a87968dce389d10027f1729e27.zip
Commit: handle only one insertion/deletion/file changed.
Diffstat (limited to 'lib')
-rw-r--r--lib/Crawl/Bot/Plugin/Commit.pm6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/Crawl/Bot/Plugin/Commit.pm b/lib/Crawl/Bot/Plugin/Commit.pm
index ccb13ae..c43b661 100644
--- a/lib/Crawl/Bot/Plugin/Commit.pm
+++ b/lib/Crawl/Bot/Plugin/Commit.pm
@@ -299,9 +299,9 @@ sub parse_commit {
my ($hash, $author, $committer, $subject, $body, $date, $stat) = ($1, $2, $3, $4, $5, $6, $7);
my ($nfiles, $nins, $ndel);
- ($stat =~ /(\d+) files changed/) and $nfiles = $1;
- ($stat =~ /(\d+) insertions/) and $nins = $1;
- ($stat =~ /(\d+) deletions/) and $ndel = $1;
+ ($stat =~ /(\d+) files? changed/) and $nfiles = $1;
+ ($stat =~ /(\d+) insertions?/) and $nins = $1;
+ ($stat =~ /(\d+) deletions?/) and $ndel = $1;
return {
hash => $hash,
author => $author,