summaryrefslogtreecommitdiff
path: root/run-tests.php
diff options
context:
space:
mode:
authorZoe Slattery <zoe@php.net>2007-11-12 18:26:37 +0000
committerZoe Slattery <zoe@php.net>2007-11-12 18:26:37 +0000
commit727a35f1cabb85afa13b6c0b3ce54b2ba1786836 (patch)
treedad0799e7c3eb52df1d0b89733f41b0c2e90eecf /run-tests.php
parent6d64218bc5708c6773dd48ca1cc78f7c6edce5cf (diff)
downloadphp-git-727a35f1cabb85afa13b6c0b3ce54b2ba1786836.tar.gz
MFH: Changing the regex for %f so the it will match E-, E+ and E.
Diffstat (limited to 'run-tests.php')
-rwxr-xr-xrun-tests.php2
1 files changed, 1 insertions, 1 deletions
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
}