GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — Makes name explicit. · felex13/AboutLibraries@b505ec3

File tree

Expand file treeCollapse file tree
Open diff view settings
Filter options
  • plugin-build/plugin/src/main/kotlin/com/mikepenz/aboutlibraries/plugin/mapping
    • SpdxLicense.kt
Expand file treeCollapse file tree
Open diff view settings
Collapse file

‎plugin-build/plugin/src/main/kotlin/com/mikepenz/aboutlibraries/plugin/mapping/SpdxLicense.kt‎

Copy file name to clipboardExpand all lines: plugin-build/plugin/src/main/kotlin/com/mikepenz/aboutlibraries/plugin/mapping/SpdxLicense.kt
+12-10Lines changed: 12 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -210,14 +210,17 @@ enum class SpdxLicense(
210210
LGPL_2_0_or_later("GNU Library General Public License v2 or later", "LGPL-2.0-or-later"),
211211
LGPL_2_1_only("GNU Lesser General Public License v2.1 only", "LGPL-2.1-only",
212212
customMatcher = { name, _ ->
213-
Regex(
214-
"GNU Lesser General Public License( \\(LGPL\\))?,? (v|Version) ?2\\.1( only)?",
215-
RegexOption.IGNORE_CASE
216-
).containsMatchIn(name)
213+
name.equals("GNU Lesser General Public License v2.1 only", true)
214+
|| name.equals("GNU Lesser General Public License (LGPL), Version 2.1", true)
217215
}
218216
),
219217
LGPL_2_1_or_later("GNU Lesser General Public License v2.1 or later", "LGPL-2.1-or-later"),
220-
LGPL_3_0_only("GNU Lesser General Public License v3.0 only", "LGPL-3.0-only"),
218+
LGPL_3_0_only("GNU Lesser General Public License v3.0 only", "LGPL-3.0-only",
219+
customMatcher = { name, _ ->
220+
name.equals("GNU Lesser General Public License v3.0 only", true)
221+
|| name.equals("GNU General Lesser Public License (LGPL) version 3.0", true)
222+
}
223+
),
221224
LGPL_3_0_or_later("GNU Lesser General Public License v3.0 or later", "LGPL-3.0-or-later"),
222225
LGPLLR("Lesser General Public License For Linguistic Resources", "LGPLLR"),
223226
Libpng("libpng License", "Libpng"),
@@ -247,11 +250,10 @@ enum class SpdxLicense(
247250
MPL_1_0("Mozilla Public License 1.0", "MPL-1.0"),
248251
MPL_1_1("Mozilla Public License 1.1", "MPL-1.1"),
249252
MPL_2_0("Mozilla Public License 2.0", "MPL-2.0",
250-
customMatcher = { name, _ ->
251-
Regex(
252-
"Mozilla Public License( Version)? 2\\.0",
253-
RegexOption.IGNORE_CASE
254-
).containsMatchIn(name)
253+
customMatcher = { name, url ->
254+
name.contains("Mozilla Public License", true)
255+
&& url?.contains("mozilla.org", true) == true
256+
&& url.contains("MPL/2.0", true)
255257
}
256258
),
257259
MPL_2_0_no_copyleft_exception(

0 commit comments

Comments
0 (0)
You are visitor 01402792 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.