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

index aa1d7354a74fce2b624d1d1adca07346b39069b9..eac645fce58e67407ef168df100876b3d585e7e0 100755 (executable)
@@ -1295,6 +1295,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);