From 727a35f1cabb85afa13b6c0b3ce54b2ba1786836 Mon Sep 17 00:00:00 2001 From: Zoe Slattery Date: Mon, 12 Nov 2007 18:26:37 +0000 Subject: [PATCH] MFH: Changing the regex for %f so the it will match E-, E+ and E. --- run-tests.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/run-tests.php b/run-tests.php index 42139bf186..7ea3e55a9b 100755 --- a/run-tests.php +++ b/run-tests.php @@ -1494,7 +1494,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-?\d+)?', $wanted_re); + $wanted_re = str_replace('%f', '[+-]?\.?\d+\.?\d*(?:E[+-]?\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