From 76ec811b3573fea59171610a4b7b19a634628bcb Mon Sep 17 00:00:00 2001 From: Derick Rethans Date: Tue, 16 Dec 2003 14:53:43 +0000 Subject: [PATCH] - Added %e modifier which gets replaced by the current value of DIRECTORY_SEPARATOR. --- run-tests.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/run-tests.php b/run-tests.php index 0b4f6afa13..7efd0b4157 100755 --- a/run-tests.php +++ b/run-tests.php @@ -843,6 +843,8 @@ COMMAND $cmd if (isset($section_text['EXPECTF'])) { $wanted_re = preg_quote($wanted_re, '/'); // Stick to basics + $wanted_re = str_replace("%e", '\\' . DIRECTORY_SEPARATOR, $wanted_re); + echo $wanted_re; $wanted_re = str_replace("%s", ".+?", $wanted_re); //not greedy $wanted_re = str_replace("%i", "[+\-]?[0-9]+", $wanted_re); $wanted_re = str_replace("%d", "[0-9]+", $wanted_re); -- 2.50.1