]> git.ipfire.org Git - thirdparty/curl.git/commitdiff
scripts/copyright.pl: ignore leading spaces
authorDaniel Stenberg <daniel@haxx.se>
Sun, 12 Jun 2022 10:37:03 +0000 (12:37 +0200)
committerDaniel Stenberg <daniel@haxx.se>
Sun, 12 Jun 2022 10:37:27 +0000 (12:37 +0200)
scripts/copyright.pl

index dcb1b8b38f3225b3039b622bcaf74cb2848472df..d031ab088e06f3b4d9b9b5cd6d82ccbbe653af76 100755 (executable)
@@ -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,