Update Pathname version checks.

* allow capital 'RC'
* allow 'stable' suffix
This commit is contained in:
Adam Vandenberg committed 2010-07-04 11:02:54 -07:00
1 parent e03578be47
commit 562fc5caac
1 file changed
+2 -2
+2 -2
View File
@@ -131,7 +131,7 @@ class Pathname
return $1 if $1
# eg. foobar-4.5.1b
/-((\d+\.)*\d+([abc]|rc\d))$/.match stem
/-((\d+\.)*\d+([abc]|rc|RC\d))$/.match stem
return $1 if $1
# eg foobar-4.5.0-beta1
@@ -143,7 +143,7 @@ class Pathname
return $1 if $1
# eg foobar-4.5.0-bin
/-((\d+\.)+\d+[abc]?)[-.](bin|src|sources?)$/.match stem
/-((\d+\.)+\d+[abc]?)[-.](bin|stable|src|sources?)$/.match stem
return $1 if $1
# eg. otp_src_R13B (this is erlang's style)