diff options
author | Neil Moore <neil@s-z.org> | 2014-07-14 08:52:26 -0500 |
---|---|---|
committer | Neil Moore <neil@s-z.org> | 2014-07-14 08:52:26 -0500 |
commit | 0fa25d80abf150a87968dce389d10027f1729e27 (patch) | |
tree | 98dd7032c04001595f7ece573483cf6de5e1f7b9 /lib/Crawl | |
parent | 482c264b7e16fe7d1822f838416f2615796c9ad8 (diff) | |
download | crawlbot-0fa25d80abf150a87968dce389d10027f1729e27.tar.gz crawlbot-0fa25d80abf150a87968dce389d10027f1729e27.zip |
Commit: handle only one insertion/deletion/file changed.
Diffstat (limited to 'lib/Crawl')
-rw-r--r-- | lib/Crawl/Bot/Plugin/Commit.pm | 6 |
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, |