summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIlia Alshanetsky <iliaa@php.net>2005-12-17 16:33:38 +0000
committerIlia Alshanetsky <iliaa@php.net>2005-12-17 16:33:38 +0000
commit87db368a753fba6862fb286fdb87d1c52e2ebaa6 (patch)
tree79d466579755ebfd59187ba48fae319ea5dddfee
parentbfb72e0c086611a4418d159a97c2bbae45326c1c (diff)
downloadphp-git-87db368a753fba6862fb286fdb87d1c52e2ebaa6.tar.gz
Added token for capturing arbitrary whitespace blocks inside text.
-rwxr-xr-xrun-tests.php1
1 files changed, 1 insertions, 0 deletions
diff --git a/run-tests.php b/run-tests.php
index e8f4e94b8c..b20a3976eb 100755
--- a/run-tests.php
+++ b/run-tests.php
@@ -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);