From 350aea60dce4e50cf6c559442bc692cc2928f5bf Mon Sep 17 00:00:00 2001 From: Adam Vandenberg Date: Sun, 4 Jul 2010 14:01:48 -0700 Subject: [PATCH] Pathname - fix RC version detection. --- Library/Homebrew/extend/pathname.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Library/Homebrew/extend/pathname.rb b/Library/Homebrew/extend/pathname.rb index 1c7dcb2c8a..4cda5697da 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