Skip to content

Commit 61a956e

Browse files
committed
Merge pull request #182 from modmore/patch-primary-slash
Remove slashes from objects primary when extracting
2 parents 4b4c3fc + 84e6360 commit 61a956e

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/Command/ExtractCommand.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -227,6 +227,7 @@ public function extractObjects($folder, array $options = array())
227227
}
228228

229229
$path = $this->filterPathSegment($path);
230+
$path = str_replace('/', '-', $path);
230231

231232
$ext = (isset($options['extension'])) ? $options['extension'] : '.yaml';
232233
$fn = $folder . DIRECTORY_SEPARATOR . $path . $ext;

0 commit comments

Comments
 (0)