Permalink
Browse files

fixing regex for setting constant in test.php

  • Loading branch information...
ceeram committed Jul 13, 2011
1 parent 6047024 commit e3dfec98c7b7cea28e6df4464ec67222d85467b8
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/Cake/Console/Command/Task/ProjectTask.php
@@ -295,7 +295,7 @@ public function corePath($path) {
$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;

0 comments on commit e3dfec9

Please sign in to comment.