Merge pull request #11533 from kidonng/patch-2
Fix potential modifications to frozen string
This commit is contained in:
commit
293488818f
@ -142,8 +142,8 @@ class Requirement
|
||||
|
||||
def infer_name
|
||||
klass = self.class.name || self.class.to_s
|
||||
klass.sub!(/(Dependency|Requirement)$/, "")
|
||||
klass.sub!(/^(\w+::)*/, "")
|
||||
klass = klass.sub(/(Dependency|Requirement)$/, "")
|
||||
.sub(/^(\w+::)*/, "")
|
||||
return klass.downcase if klass.present?
|
||||
|
||||
return @cask if @cask.present?
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user