From 0fa25d80abf150a87968dce389d10027f1729e27 Mon Sep 17 00:00:00 2001 From: Neil Moore Date: Mon, 14 Jul 2014 08:52:26 -0500 Subject: Commit: handle only one insertion/deletion/file changed. --- lib/Crawl/Bot/Plugin/Commit.pm | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'lib') 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, -- cgit v1.2.3-54-g00ecf