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

index c7841765c72908a6ce475ee9531a061eb78d4726..e954d0990846d37974108fad2ac74718d03135a9 100755 (executable)
@@ -1557,7 +1557,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
                }