]> granicus.if.org Git - php/commitdiff
Added token for capturing arbitrary whitespace blocks inside text.
authorIlia Alshanetsky <iliaa@php.net>
Sat, 17 Dec 2005 16:33:38 +0000 (16:33 +0000)
committerIlia Alshanetsky <iliaa@php.net>
Sat, 17 Dec 2005 16:33:38 +0000 (16:33 +0000)
run-tests.php

index e8f4e94b8c87d86e6a9af1ed57ef24ee04fb4bca..b20a3976eb806189b26cce29b755659c1f1712f1 100755 (executable)
@@ -1224,6 +1224,7 @@ COMMAND $cmd
                        // Stick to basics
                        $wanted_re = str_replace("%e", '\\' . DIRECTORY_SEPARATOR, $wanted_re);
                        $wanted_re = str_replace("%s", ".+?", $wanted_re); //not greedy
+                       $wanted_re = str_replace("%w", "\s*", $wanted_re);
                        $wanted_re = str_replace("%i", "[+\-]?[0-9]+", $wanted_re);
                        $wanted_re = str_replace("%d", "[0-9]+", $wanted_re);
                        $wanted_re = str_replace("%x", "[0-9a-fA-F]+", $wanted_re);