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:
@@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user