We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 725e72b + c57070f commit bbf9375Copy full SHA for bbf9375
src/PatternLab/PatternData.php
@@ -128,8 +128,8 @@ public static function gather($options = array()) {
128
$isDir = $object->isDir();
129
$isFile = $object->isFile();
130
131
- $path = str_replace($patternSourceDir."/","",$object->getPath());
132
- $pathName = str_replace($patternSourceDir."/","",$object->getPathname());
+ $path = str_replace($patternSourceDir.DIRECTORY_SEPARATOR,"",$object->getPath());
+ $pathName = str_replace($patternSourceDir.DIRECTORY_SEPARATOR,"",$object->getPathname());
133
$name = $object->getFilename();
134
$depth = substr_count($pathName,DIRECTORY_SEPARATOR);
135
0 commit comments