Skip to content

Commit

Permalink
Add recognition of MPL 2.0 (#31226)
Browse files Browse the repository at this point in the history
This commit adds the ability for the dependencies info check to
recognize version 2.0 of the Mozilla Public License.
  • Loading branch information
jasontedor committed Jun 9, 2018
1 parent e6303e4 commit 219a3d7
Showing 1 changed file with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -245,6 +245,8 @@ SOFTWARE\\.

final String MOZILLA_1_1 = "Mozilla Public License.*Version 1.1"

final String MOZILLA_2_0 = "Mozilla\\s*Public\\s*License\\s*Version\\s*2\\.0"

switch (licenseText) {
case ~/.*${APACHE_2_0}.*/:
spdx = 'Apache-2.0'
Expand Down Expand Up @@ -273,6 +275,9 @@ SOFTWARE\\.
case ~/.*${MOZILLA_1_1}.*/:
spdx = 'MPL-1.1'
break
case ~/.*${MOZILLA_2_0}.*/:
spdx = 'MPL-2.0'
break
default:
break
}
Expand Down

0 comments on commit 219a3d7

Please sign in to comment.