inline titleize
This commit is contained in:
parent
2c5067ec77
commit
7f3593e12d
@ -95,7 +95,7 @@ module SPDX
|
|||||||
when String
|
when String
|
||||||
license_expression
|
license_expression
|
||||||
when Symbol
|
when Symbol
|
||||||
license_expression.to_s.tr("_", " ").titleize
|
license_expression.to_s.tr("_", " ").gsub(/\b(?<!\w['’`()])[a-z]/, &:capitalize)
|
||||||
when Hash
|
when Hash
|
||||||
expressions = []
|
expressions = []
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user