Skip to content

Commit

Permalink
Fix automatic detection of CC0-1.0 by fixing corresponding file names…
Browse files Browse the repository at this point in the history
… and identifiers
  • Loading branch information
rzimmer committed Jan 23, 2021
1 parent 21b389f commit e03a1b7
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
<?xml version="1.0" encoding="utf-8"?>
<resources translatable="false">
<string name="define_license_cc0_10" translatable="false"></string>
<string name="license_cc0_10_licenseName" translatable="false">Creative Commons CC0 1.0 Universal License</string>
<string name="license_cc0_10_licenseWebsite" translatable="false">https://creativecommons.org/publicdomain/zero/1.0/legalcode</string>
<string name="license_cc0_10_licenseShortDescription" translatable="false">
<string name="define_license_cc0_1_0" translatable="false"></string>
<string name="license_cc0_1_0_licenseName" translatable="false">Creative Commons CC0 1.0 Universal License</string>
<string name="license_cc0_1_0_licenseWebsite" translatable="false">https://creativecommons.org/publicdomain/zero/1.0/legalcode</string>
<string name="license_cc0_1_0_licenseShortDescription" translatable="false">
<![CDATA[
<strong>No Copyright</strong>
<br /><br />
Expand All @@ -20,5 +20,5 @@
</ul>
]]>
</string>
<string name="license_cc0_10_licenseDescription" translatable="false">raw:license_cc0_10</string>
<string name="license_cc0_1_0_licenseDescription" translatable="false">raw:license_cc0_1_0</string>
</resources>
Original file line number Diff line number Diff line change
Expand Up @@ -390,7 +390,7 @@ enum class License(val fullName: String, val id: String, val aboutLibsId: String
MIT("MIT License", "MIT", "mit", { name, _ ->
name.contains("MIT", true)
}),
CC0_1_0("Creative Commons Zero v1.0 Universal", "CC0-1.0", "cc0_10", customMatcher = { name, _ ->
CC0_1_0("Creative Commons Zero v1.0 Universal", "CC0-1.0", "cc0_1_0", customMatcher = { name, _ ->
name.equals("CC0", true)
}),

Expand Down

0 comments on commit e03a1b7

Please sign in to comment.