去掉用户名后的空格

时间区间测试
This commit is contained in:
huang 2015-07-25 00:24:59 +08:00
parent 088e9b200a
commit a04fe786ea
1 changed files with 2 additions and 1 deletions

View File

@ -709,7 +709,8 @@ update
commits_by_author.each do |cba|
all_author << cba.first
end
all_author = all_author.collect {|c| c.gsub(%r{<.+@.+>}, '') }
# all_author = all_author.collect {|c| c.gsub(%r{/ /<.+@.+>}, '') }
all_author = all_author.collect {|c| c.split.first }
commits_by_author = repository.commits(all_author, "2015-01-24", "2015-07-24")
Rails.logger.debug "######################################{commits_by_author}"