Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Simplify this regexp

  • Loading branch information...
commit 15b49bc38826c144884cbae257ca4d302fc639a7 1 parent c4db67f
Jack Nagel jacknagel authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  Library/Homebrew/requirement.rb
2  Library/Homebrew/requirement.rb
View
@@ -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
Please sign in to comment.
Something went wrong with that request. Please try again.