aboutsummaryrefslogtreecommitdiff
path: root/utils/scancpan
diff options
context:
space:
mode:
Diffstat (limited to 'utils/scancpan')
-rwxr-xr-xutils/scancpan1
1 files changed, 1 insertions, 0 deletions
diff --git a/utils/scancpan b/utils/scancpan
index 1fccc980af..484ccaca95 100755
--- a/utils/scancpan
+++ b/utils/scancpan
@@ -566,6 +566,7 @@ sub find_license_files {
my @license_files;
foreach (split /\n/, $manifest) {
next if m|/|;
+ s|\s+.*$||;
push @license_files, $_ if m/(ARTISTIC|COPYING|COPYRIGHT|LICENSE)/i;
}
if (scalar @license_files == 0 && $manifest =~ m/(README)[\n\s]/i) {