Fix updating the copyright headers.

This commit is contained in:
Sadie Powell 2022-04-28 17:58:38 +01:00
parent f6489c3456
commit bddfb460e5

View File

@ -59,7 +59,7 @@ for my $path (@paths) {
my ($copyright, $indent, @lines);
for my $line (<$fh>) {
chomp $line;
if ($line =~ /^([^0-9A-Za-z]+\s)Copyright\s+\(C\)\s+[^<]+\s+<[^>]+>$/) {
if ($line =~ /^([^0-9A-Za-z]+\s)Copyright\s+\(C\)\s+[^<]+(\s+<[^>]+>)?$/) {
$copyright = scalar @lines;
$indent = $1;
} else {