mirror of
https://github.com/github/choosealicense.com
synced 2024-12-22 04:40:09 +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:
commit
3ad9bf7f0f
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user