summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2022-06-12 12:37:03 +0200
committerDaniel Stenberg <daniel@haxx.se>2022-06-12 12:37:27 +0200
commit18a01e322981705aef23dd012a3fd2183abb1174 (patch)
tree35933a79c96a0addc4cb8193304140b71dcd22dc /scripts
parentdd940769478df4838c51a90e1c3ed28a4d993788 (diff)
downloadcurl-18a01e322981705aef23dd012a3fd2183abb1174.tar.gz
scripts/copyright.pl: ignore leading spaces
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/copyright.pl2
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/copyright.pl b/scripts/copyright.pl
index dcb1b8b38..d031ab088 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,