summaryrefslogtreecommitdiffstats
path: root/third_party/devscripts/licensecheck.pl
diff options
context:
space:
mode:
Diffstat (limited to 'third_party/devscripts/licensecheck.pl')
-rwxr-xr-xthird_party/devscripts/licensecheck.pl4
1 files changed, 2 insertions, 2 deletions
diff --git a/third_party/devscripts/licensecheck.pl b/third_party/devscripts/licensecheck.pl
index df7aebc..433807e 100755
--- a/third_party/devscripts/licensecheck.pl
+++ b/third_party/devscripts/licensecheck.pl
@@ -393,9 +393,9 @@ sub parselicense($) {
$licensetext =~ /GNU (?:Affero )?General Public License as published by the Free Software Foundation; version ([^ ]+) /i) {
$gplver = " (v$1)";
- } elsif ($licensetext =~ /GNU (Affero ?)General Public License, version ([^ ]+?)[ .]/) {
+ } elsif ($licensetext =~ /GNU (?:Affero ?)General Public License, version ([^ ]+?)[ .]/) {
$gplver = " (v$1)";
- } elsif ($licensetext =~ /either version ([^ ]+) of the License, or \(at your option\) any later version/) {
+ } elsif ($licensetext =~ /either version ([^ ]+)(?: of the License)?, or \(at your option\) any later version/) {
$gplver = " (v$1 or later)";
}