]> 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 18:26:37 +0000 (18:26 +0000)
committerZoe Slattery <zoe@php.net>
Mon, 12 Nov 2007 18:26:37 +0000 (18:26 +0000)
run-tests.php

index 42139bf186254e97467a2a58ef56395dd8354c85..7ea3e55a9b3e5dad3e66022067578bd36f82c97e 100755 (executable)
@@ -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
                }