]> granicus.if.org Git - php/commitdiff
MFH: Changing the regex for %f so the it will match E-, E+ and E.
authorZoe Slattery <zoe@php.net>
Mon, 12 Nov 2007 21:16:27 +0000 (21:16 +0000)
committerZoe Slattery <zoe@php.net>
Mon, 12 Nov 2007 21:16:27 +0000 (21:16 +0000)
run-tests.php

index 1f9bac15729b3e90549f3120e287d2218cdc45c8..467109fe6ea956da901107127339edbae7a1b1a8 100755 (executable)
@@ -1493,7 +1493,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
                }