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