1
0
mirror of https://github.com/php/php-src.git synced 2026-04-13 11:02:55 +02:00

Allow Elizabeth's favourite function to accept 2-4 sets of digits in version.

This commit is contained in:
Steph Fox
2008-03-20 15:03:20 +00:00
parent 6867385d75
commit b72b4ce87e

View File

@@ -23,7 +23,7 @@ function probe_binary(EXE, what)
return 1;
}
} else {
if (version.match(/(\d+\.\d+\.\d+(\.\d+)?)/)) {
if (version.match(/(\d+\.\d+(\.\d+)?(\.\d+)?)/)) {
return RegExp.$1;
}
}