From e3dfec98c7b7cea28e6df4464ec67222d85467b8 Mon Sep 17 00:00:00 2001 From: Ceeram Date: Wed, 13 Jul 2011 18:23:07 +0200 Subject: [PATCH] fixing regex for setting constant in test.php --- lib/Cake/Console/Command/Task/ProjectTask.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/Cake/Console/Command/Task/ProjectTask.php b/lib/Cake/Console/Command/Task/ProjectTask.php index d3a79c0ec..bd7afcd3e 100644 --- a/lib/Cake/Console/Command/Task/ProjectTask.php +++ b/lib/Cake/Console/Command/Task/ProjectTask.php @@ -295,7 +295,7 @@ class ProjectTask extends Shell { $File = new File($path . 'webroot' . DS . 'test.php'); $contents = $File->read(); - if (preg_match('/([\s]*define\(\'CAKE_CORE_INCLUDE_PATH\',[\s\'A-z0-9]*\);)/', $contents, $match)) { + if (preg_match('/([\s]*define\(\'CAKE_CORE_INCLUDE_PATH\',[\s\'A-z0-9\.]*\);)/', $contents, $match)) { $result = str_replace($match[0], "\n\t\tdefine('CAKE_CORE_INCLUDE_PATH', " . $root . str_replace(DS, "' . DS . '", trim(CAKE_CORE_INCLUDE_PATH, DS)) . "');", $contents); if (!$File->write($result)) { return false;