From b211d8cc3c0de633e1e928ac689bb2aa3b90c58d Mon Sep 17 00:00:00 2001 From: Ilia Alshanetsky Date: Sat, 17 Dec 2005 16:33:53 +0000 Subject: [PATCH] MFB51: Added token for capturing arbitrary whitespace blocks inside text. --- run-tests.php | 1 + 1 file changed, 1 insertion(+) diff --git a/run-tests.php b/run-tests.php index aa1d7354a7..eac645fce5 100755 --- a/run-tests.php +++ b/run-tests.php @@ -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); -- 2.50.1