|
@@ -4,7 +4,7 @@ import json
|
|
|
|
|
|
def git_stats_to_json(text):
|
|
|
# 正则表达式匹配任意顺序的统计项
|
|
|
- pattern = r",?\s*(\d+)\s*files changed|,?\s*(\d+)\s*insertions\(\+\)|,?\s*(\d+)\s+deletions\(\-\)"
|
|
|
+ pattern = r",?\s*(\d+)\s*files changed|,?\s*(\d+)\s*insertions\(\+\)|,?\s*(\d+)\s*deletions\(\-\)"
|
|
|
|
|
|
# 动态提取并合并结果
|
|
|
data = re.findall(pattern, text)
|