]> 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:20:15 +0000 (04:20 +0000)
committerRaghubansh Kumar <kraghuba@php.net>
Mon, 24 Dec 2007 04:20:15 +0000 (04:20 +0000)
run-tests.php

index dff348b1a79dcf9fd563188b78427a6e2c9cd476..b9906800c2b14e02d217fdc22d29006319a537ca 100755 (executable)
@@ -1600,7 +1600,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
                }