Skip to content
This repository has been archived by the owner on Jul 4, 2023. It is now read-only.

Commit

Permalink
Simplify this regexp
Browse files Browse the repository at this point in the history
  • Loading branch information
jacknagel committed Feb 12, 2013
1 parent c4db67f commit 15b49bc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Library/Homebrew/requirement.rb
Expand Up @@ -59,7 +59,7 @@ def hash
def infer_name
klass = self.class.to_s
klass.sub!(/(Dependency|Requirement)$/, '')
klass.sub!(/^(\w+::){0,}/, '')
klass.sub!(/^(\w+::)*/, '')
klass.downcase
end

Expand Down

0 comments on commit 15b49bc

Please sign in to comment.