diff options
author | Dmitry Stogov <dmitry@php.net> | 2007-12-25 12:06:22 +0000 |
---|---|---|
committer | Dmitry Stogov <dmitry@php.net> | 2007-12-25 12:06:22 +0000 |
commit | 24957a15e06300416790c436712d3b2124ca03eb (patch) | |
tree | 4f2fd480f1a023fd315bf5d03954107df57fe162 | |
parent | cb165e184d1227ea354767f9438dcc9834e4e4de (diff) | |
download | php-git-24957a15e06300416790c436712d3b2124ca03eb.tar.gz |
Fixed %f regex
-rwxr-xr-x | run-tests.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/run-tests.php b/run-tests.php index 3eaa7ab4fc..6e91843a67 100755 --- a/run-tests.php +++ b/run-tests.php @@ -1517,7 +1517,7 @@ COMMAND $cmd $wanted_re = str_replace('%i', '[+-]?\d+', $wanted_re); $wanted_re = str_replace('%d', '\d+', $wanted_re); $wanted_re = str_replace('%x', '[0-9a-fA-F]+', $wanted_re); - $wanted_re = str_replace('%f', '[+-]?\.?\d+\.?\d*(?:E|e[+-]?\d+)?', $wanted_re); + $wanted_re = str_replace('%f', '[+-]?\.?\d+\.?\d*(?:[Ee][+-]?\d+)?', $wanted_re); $wanted_re = str_replace('%c', '.', $wanted_re); // %f allows two points "-.0.0" but that is the best *simple* expression } |