Skip to content

Commit 5451620

Browse files
committed
iterate
1 parent bb8f27c commit 5451620

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Toolkit/src/Kit/KitContextRunner.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ public function findAnonymousComponentTemplate(string $name): ?string
9292
{
9393
foreach ($this->kit->getRecipes(type: RecipeType::Component) as $recipe) {
9494
foreach ($recipe->getFiles() as $file) {
95-
if (str_ends_with($file->sourceRelativePathName, str_replace(':', \DIRECTORY_SEPARATOR, $name).'.html.twig')) {
95+
if (str_ends_with($file->sourceRelativePathName, str_replace(':', '/', $name).'.html.twig')) {
9696
return $file->sourceRelativePathName;
9797
}
9898
}

0 commit comments

Comments
 (0)