Skip to content
Browse files

Fix check for latest version to work with versions like -rc1-dev

  • Loading branch information...
1 parent 8119fa3 commit 9433f4e78fdc847554d900ea440e642685d8dd75 @nijel nijel committed Apr 7, 2011
Showing with 1 addition and 1 deletion.
  1. +1 −1 setup/lib/index.lib.php
View
2 setup/lib/index.lib.php
@@ -176,7 +176,7 @@ function PMA_version_check()
function version_to_int($version)
{
$matches = array();
- if (!preg_match('/^(\d+)\.(\d+)\.(\d+)((\.|-(pl|rc|dev|beta|alpha))(\d+)?)?$/', $version, $matches)) {
+ if (!preg_match('/^(\d+)\.(\d+)\.(\d+)((\.|-(pl|rc|dev|beta|alpha))(\d+)?(-dev)?)?$/', $version, $matches)) {
return false;
}
if (!empty($matches[6])) {

0 comments on commit 9433f4e

Please sign in to comment.
Something went wrong with that request. Please try again.