Skip to content

Commit

Permalink
Merge pull request #30 from pmonks/dev
Browse files Browse the repository at this point in the history
  • Loading branch information
pmonks authored Oct 31, 2023
2 parents 3f9b2e7 + b8dab1f commit ef2fcb6
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/lice_comb/impl/regex_matching.clj
Original file line number Diff line number Diff line change
Expand Up @@ -206,7 +206,7 @@
(def lgpl-re #"(?<lgpl>L\s?GPL|GNU\s+(Library|Lesser)|(Library|Lesser)\s+(L?GPL|General\s+Public\s+Licen[cs]e))(\s+or\s+Lesser)?(\s+General)?(\s+Pub?lic)?(\s+Licen[cs]e)?(\s+\(?LGPL\)?)?")
(def gpl-re #"(?<!(Affero|Lesser|Library)\s+)(?<gpl>GNU(?!\s+Classpath)|(?<!(L|A)\s*)GPL|General\s+Public\s+Licen[cs]e)(?!\s+(Affero|Library|Lesser|General\s+Lesser|General\s+Library|LGPL|AGPL))((\s+General)?(?!\s+(Affero|Lesser|Library))\s+Public\s+Licen[cs]e)?(\s+\(?GPL\)?)?")
(def version-re #"[\s,-]*(_?V(ersion)?)?[\s\._]*(?<version>\d+([\._]\d+)?)?")
(def only-or-later-re #"[\s-]*((?<only>only)|(\(?or(\s+\(?at\s+your\s+(option|discretion)\)?)?(\s+any)?)?([\s-]*(?<orLater>later|lator|newer|\+)))?")
(def only-or-later-re #"[\s-]*((?<only>\(?only\)?)|(\(?or(\s+\(?at\s+your\s+(option|discretion)\)?)?(\s+any)?)?([\s-]*(?<orLater>later|lator|newer|\+)))?")
(def gnu-re (lciu/re-concat "(?x)(?i)\\b(\n# Alternative 1: AGPL\n"
agpl-re
"\n# Alternative 2: LGPL\n|"
Expand Down
2 changes: 1 addition & 1 deletion src/lice_comb/matching.clj
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
An expressions-info map has this structure:
* key: an SPDX expression (String), which may be a single SPDX license
identifier)
identifier
* value: a sequence of 'expression-info' maps
Each lice-comb expression-info map has this structure:
Expand Down
1 change: 1 addition & 0 deletions test/lice_comb/impl/regex_matching_test.clj
Original file line number Diff line number Diff line change
Expand Up @@ -173,6 +173,7 @@
"The GNU General Public License" '("GPL-3.0-only")
"The GNU General Public License v3.0" '("GPL-3.0-only")
"The GNU General Public License, Version 2 " '("GPL-2.0-only")
"GNU General Public License version 2 (only)" '("GPL-2.0-only")
})

(def cc-by-licenses-and-ids {
Expand Down

0 comments on commit ef2fcb6

Please sign in to comment.