1
0
mirror of https://github.com/github/choosealicense.com synced 2024-12-22 12:50:24 +01:00

Merge pull request #568 from wking/case-insensitive-spdx-lookup

spec_helper: Restore case-insensitive matching in find_spdx
This commit is contained in:
Mike Linksvayer 2018-01-03 11:34:13 -08:00 committed by GitHub
commit 3ad9bf7f0f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -86,7 +86,7 @@ def spdx_ids
end end
def find_spdx(license) def find_spdx(license)
spdx_list.find { |name, _properties| name == license } spdx_list.find { |name, _properties| name.casecmp(license).zero? }
end end
def osi_approved_licenses def osi_approved_licenses