Skip to content

Commit 33502aa

Browse files
author
Scott Baker
committed
We'll match a word char instead to be a little more lenient
1 parent a3092ac commit 33502aa

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

libs/header_clean/header_clean.pl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,12 +29,12 @@
2929
########################################
3030
# Find the first file: --- a/README.md #
3131
########################################
32-
} elsif ($line =~ /^$ansi_sequence_regex--- ([abiwco]\/)?(.+?)(\e|$)/) {
32+
} elsif ($line =~ /^$ansi_sequence_regex--- (\w\/)?(.+?)(\e|$)/) {
3333
$file_1 = $5;
3434

3535
# Find the second file on the next line: +++ b/README.md
3636
my $next = $input[++$i];
37-
$next =~ /^$ansi_sequence_regex\+\+\+ ([abiwco]\/)?(.+?)(\e|$)/;
37+
$next =~ /^$ansi_sequence_regex\+\+\+ (\w\/)?(.+?)(\e|$)/;
3838
if ($1) {
3939
print $1; # Print out whatever color we're using
4040
}

0 commit comments

Comments
 (0)