Applying patch from teemow, fixes schema file generation so files with trailing characters do not match. Fixes #5854

git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@7905 3807eeeb-6ff5-0310-8944-8be069107fe0
This commit is contained in:
mark_story 2008-12-05 17:01:20 +00:00
parent b2b4c4be47
commit 8a0fb1904a

View file

@ -153,7 +153,7 @@ class SchemaShell extends Shell {
$count = 1; $count = 1;
if (!empty($result[1])) { if (!empty($result[1])) {
foreach ($result[1] as $file) { foreach ($result[1] as $file) {
if (preg_match('/schema(?:[_\d]*)?\.php/', $file)) { if (preg_match('/schema(?:[_\d]*)?\.php$/', $file)) {
$count++; $count++;
} }
} }