From a84b22d125616facbb64968ee6e9166a1a6f76fc Mon Sep 17 00:00:00 2001 From: Dmitry Stogov Date: Tue, 25 Dec 2007 12:06:53 +0000 Subject: [PATCH] Fixed %f regex --- run-tests.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/run-tests.php b/run-tests.php index b9906800c2..84aa7d1412 100755 --- a/run-tests.php +++ b/run-tests.php @@ -1600,7 +1600,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 } -- 2.50.1