[licensecheck] 09/112: Fix avoid non-digit in version of license Artistic.

Jonas Smedegaard dr at jones.dk
Fri Nov 25 22:01:43 UTC 2016


This is an automated email from the git hooks/post-receive script.

js pushed a commit to branch master
in repository licensecheck.

commit 606a397c25014fbb57c7bcf7729fc58ed569613f
Author: Jonas Smedegaard <dr at jones.dk>
Date:   Tue Sep 20 09:57:57 2016 +0200

    Fix avoid non-digit in version of license Artistic.
---
 lib/App/Licensecheck.pm | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/lib/App/Licensecheck.pm b/lib/App/Licensecheck.pm
index c2358f5..6f589a8 100755
--- a/lib/App/Licensecheck.pm
+++ b/lib/App/Licensecheck.pm
@@ -564,7 +564,7 @@ sub parse_license
 	given ($licensetext) {
 		# either *begins* with "The Artistic license v2.0" (hopefully the actual license)
 		# or some license grant,
-		when ( /(?:^ ?|(?:This is free software, licensed|Released|be used|use and modify this (?:module|software)) under (?:the terms of )?)[Tt]he Artistic License ([v\d.]*\d)/ ) {
+		when ( /(?:^ ?|(?:This is free software, licensed|Released|be used|use and modify this (?:module|software)) under (?:the terms of )?)[Tt]he Artistic License v?([\d.]*\d)/ ) {
 			$license = "Artistic (v$1) $license";
 			push @spdx_license, "Artistic-$1";
 		}

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-perl/packages/licensecheck.git



More information about the Pkg-perl-cvs-commits mailing list