15 my $HEADERMATCH = qr/ [a-z]+ (?: (?:-\w+)+ | \ by ) /ix;
21 # strip commit seperator
23 # skip expensive checks without potential identifier
25 # try to parse as UTF-8
26 eval { $_ = decode(utf8 => $_, Encode::FB_CROAK()) };
27 # if invalid, assume it's latin1
28 $_ = decode(cp1252 => $_) if $@;
34 for (reverse split /\n\n/) {
51 push @headers, \@header;
54 next BLOCK if not @headers;
56 if ($opt{debug} and $prefix) {
57 say "infix junk in commit $hash";