1
0
mirror of https://github.com/github/choosealicense.com synced 2024-11-05 03:08:51 +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
def find_spdx(license)
spdx_list.find { |name, _properties| name == license }
spdx_list.find { |name, _properties| name.casecmp(license).zero? }
end
def osi_approved_licenses