Skip to content

Commit

Permalink
Add more & Cleanups
Browse files Browse the repository at this point in the history
  • Loading branch information
Goooler committed Aug 18, 2023
1 parent a433ba1 commit 31870b7
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions src/main/kotlin/app/cash/licensee/licenses.kt
Original file line number Diff line number Diff line change
Expand Up @@ -60,8 +60,8 @@ internal fun getFallbackId(url: String): String? {
return when (fixedUrl) {
"apache.org/licenses/license-2.0",
"api.github.com/licenses/apache-2.0",
"opensource.org/licenses/apache2.0",
"opensource.org/license/apache-2-0",
"opensource.org/licenses/apache2.0",
-> "Apache-2.0"

"api.github.com/licenses/cc0-1.0",
Expand All @@ -70,19 +70,23 @@ internal fun getFallbackId(url: String): String? {

"api.github.com/licenses/lgpl-2.1",
"gnu.org/licenses/old-licenses/lgpl-2.1",
"opensource.org/license/lgpl-2-1",
"opensource.org/licenses/lgpl-2.1",
-> "LGPL-2.1-only"

"api.github.com/licenses/mit",
"opensource.org/license/mit",
"opensource.org/licenses/mit-license",
-> "MIT"

"api.github.com/licenses/bsd-2-clause",
"opensource.org/license/bsd-2-clause",
"opensource.org/licenses/bsd-license",
-> "BSD-2-Clause"

"api.github.com/licenses/bsd-3-clause",
"opensource.org/licenses/BSD-3-Clause",
"opensource.org/license/bsd-3-clause",
"opensource.org/licenses/bsd-3-Clause",
-> "BSD-3-Clause"

"gnu.org/software/classpath/license",
Expand Down

0 comments on commit 31870b7

Please sign in to comment.