aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
authorAdam Vandenberg2010-07-04 14:01:48 -0700
committerAdam Vandenberg2010-07-04 14:10:04 -0700
commit7220273b91fa040910de3bd8854dc257196ee177 (patch)
tree99ace0009801febc5628bcadc27df39015ca76ba /Library
parent404483ed52529d538e2befd2e7cd1b70fa9d92dd (diff)
downloadhomebrew-7220273b91fa040910de3bd8854dc257196ee177.tar.bz2
Pathname - fix RC version detection.
Diffstat (limited to 'Library')
-rw-r--r--Library/Homebrew/extend/pathname.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/Library/Homebrew/extend/pathname.rb b/Library/Homebrew/extend/pathname.rb
index 1c7dcb2c8..4cda5697d 100644
--- a/Library/Homebrew/extend/pathname.rb
+++ b/Library/Homebrew/extend/pathname.rb
@@ -119,7 +119,7 @@ class Pathname
# eg. foobar-4.5.1-1
# eg. ruby-1.9.1-p243
- /-((\d+\.)*\d\.\d+-(p|rc)?\d+)$/.match stem
+ /-((\d+\.)*\d\.\d+-(p|rc|RC)?\d+)$/.match stem
return $1 if $1
# eg. lame-398-1
@@ -131,7 +131,7 @@ class Pathname
return $1 if $1
# eg. foobar-4.5.1b
- /-((\d+\.)*\d+([abc]|rc|RC\d))$/.match stem
+ /-((\d+\.)*\d+([abc]|rc|RC)\d*)$/.match stem
return $1 if $1
# eg foobar-4.5.0-beta1