]> granicus.if.org Git - php/commitdiff
Changing the regex for %f so the it will match e-, e+ and e.
authorRaghubansh Kumar <kraghuba@php.net>
Mon, 24 Dec 2007 04:24:20 +0000 (04:24 +0000)
committerRaghubansh Kumar <kraghuba@php.net>
Mon, 24 Dec 2007 04:24:20 +0000 (04:24 +0000)
run-tests.php

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