We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 74804e3 commit 8c34daeCopy full SHA for 8c34dae
libs/header_clean/header_clean.pl
@@ -108,7 +108,7 @@
108
sub parse_hunk_header {
109
my ($line) = @_;
110
my ($o_ofs, $o_cnt, $n_ofs, $n_cnt) =
111
- $line =~ /^@@ -(\d+)(?:,(\d+))? \+(\d+)(?:,(\d+))? @@/;
+ $line =~ /^@@+(?: -(\d+)(?:,(\d+))?)+ \+(\d+)(?:,(\d+))? @@+/;
112
$o_cnt = 1 unless defined $o_cnt;
113
$n_cnt = 1 unless defined $n_cnt;
114
return ($o_ofs, $o_cnt, $n_ofs, $n_cnt);
0 commit comments