From: Daniel Stenberg Date: Sun, 12 Jun 2022 10:37:03 +0000 (+0200) Subject: scripts/copyright.pl: ignore leading spaces X-Git-Tag: curl-7_84_0~57 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=18a01e322981705aef23dd012a3fd2183abb1174;p=thirdparty%2Fcurl.git scripts/copyright.pl: ignore leading spaces --- diff --git a/scripts/copyright.pl b/scripts/copyright.pl index dcb1b8b38f..d031ab088e 100755 --- a/scripts/copyright.pl +++ b/scripts/copyright.pl @@ -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,