scripts/copyright.pl: ignore leading spaces

This commit is contained in:
Daniel Stenberg 2022-06-12 12:37:03 +02:00
parent dd94076947
commit 18a01e3229
No known key found for this signature in database
GPG Key ID: 5CC908FDB71E12C2

View File

@ -95,7 +95,7 @@ sub scanfile {
chomp;
my $l = $_;
# check for a copyright statement and save the years
if($l =~ /.* +copyright .* *\d\d\d\d/i) {
if($l =~ /.* ?copyright .* *\d\d\d\d/i) {
while($l =~ /([\d]{4})/g) {
push @copyright, {
year => $1,