]> granicus.if.org Git - php/commitdiff
Fixed %f regex
authorDmitry Stogov <dmitry@php.net>
Tue, 25 Dec 2007 12:06:22 +0000 (12:06 +0000)
committerDmitry Stogov <dmitry@php.net>
Tue, 25 Dec 2007 12:06:22 +0000 (12:06 +0000)
run-tests.php

index 3eaa7ab4fcd418e87b192bd7c9062bbefba15174..6e91843a67eceb1ad265be10f5dcf7593cc4284b 100755 (executable)
@@ -1517,7 +1517,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|e[+-]?\d+)?', $wanted_re);
+                       $wanted_re = str_replace('%f', '[+-]?\.?\d+\.?\d*(?:[Ee][+-]?\d+)?', $wanted_re);
                        $wanted_re = str_replace('%c', '.', $wanted_re);
                        // %f allows two points "-.0.0" but that is the best *simple* expression
                }