Skip to content
This repository was archived by the owner on Jan 22, 2026. It is now read-only.

Commit 6f61fc5

Browse files
committed
Fix regex in parse_coauthors method to correctly capture co-author names
1 parent 33ba98d commit 6f61fc5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/git/pkgs/commands/blame.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ def best_author(commit)
101101
def parse_coauthors(message)
102102
return [] unless message
103103

104-
message.scan(/^Co-authored-by:\s*([^<]+)<[^>]+>/i).flatten.map(&:strip)
104+
message.scan(/^Co-authored-by:([^<]+)<[^>]+>/i).flatten.map(&:strip)
105105
end
106106

107107
def bot_author?(name)

0 commit comments

Comments
 (0)