From 970653052143e0cecc72323617f8a2d9d76f15ca Mon Sep 17 00:00:00 2001 From: wangyidong Date: Thu, 31 Jan 2019 13:26:36 +0800 Subject: [PATCH] * adjust for get commiter in git. --- module/git/model.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/module/git/model.php b/module/git/model.php index 496f425851..5f4efab6f7 100644 --- a/module/git/model.php +++ b/module/git/model.php @@ -324,7 +324,7 @@ class gitModel extends model list($hash, $account, $date) = $log; $account = preg_replace('/^Author:/', '', $account); - $account = trim(preg_replace('/<[\w\-\.]+@([\w\-]+\.)+\w+>/', '', $account)); + $account = trim(preg_replace('/<[\w\-\.]+@[\w\-]+>/', '', $account)); $date = trim(preg_replace('/^Date:/', '', $date)); $count = count($log);