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

index b9906800c2b14e02d217fdc22d29006319a537ca..84aa7d1412647e7174a2ab40da582d05dc513eb7 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|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
                }