aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew/extend/pathname.rb
diff options
context:
space:
mode:
authorJamie Macey2010-10-25 21:12:41 -0700
committerAdam Vandenberg2010-10-30 14:47:44 -0700
commit1e41264f420b9ac5d8864e162d00ccfaa2020662 (patch)
treeb58ed0084521a41b90718dddefc055c3652e43b8 /Library/Homebrew/extend/pathname.rb
parentc61204eb1ebc3d6f53dff9833796708ce3397d53 (diff)
downloadbrew-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.rb2
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