diff options
| author | Jamie Macey | 2010-10-25 21:12:41 -0700 |
|---|---|---|
| committer | Adam Vandenberg | 2010-10-30 14:47:44 -0700 |
| commit | 1e41264f420b9ac5d8864e162d00ccfaa2020662 (patch) | |
| tree | b58ed0084521a41b90718dddefc055c3652e43b8 /Library/Homebrew/extend/pathname.rb | |
| parent | c61204eb1ebc3d6f53dff9833796708ce3397d53 (diff) | |
| download | brew-1e41264f420b9ac5d8864e162d00ccfaa2020662.tar.bz2 | |
fix warnings: ambiguous first arg
Signed-off-by: Adam Vandenberg <flangy@gmail.com>
Diffstat (limited to 'Library/Homebrew/extend/pathname.rb')
| -rw-r--r-- | Library/Homebrew/extend/pathname.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Library/Homebrew/extend/pathname.rb b/Library/Homebrew/extend/pathname.rb index 0982a6f33..009cdfa48 100644 --- a/Library/Homebrew/extend/pathname.rb +++ b/Library/Homebrew/extend/pathname.rb @@ -156,7 +156,7 @@ class Pathname # eg. otp_src_R13B (this is erlang's style) # eg. astyle_1.23_macosx.tar.gz - stem.scan /_([^_]+)/ do |match| + stem.scan(/_([^_]+)/) do |match| return match.first if /\d/.match $1 end |
