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:
commit
3ad9bf7f0f
@ -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
|
||||||
|
Loading…
x
Reference in New Issue
Block a user