Skip to content
Permalink
Browse files

Fixes usage on windows

  • Loading branch information...
nunomaduro committed May 14, 2019
1 parent a0a8008 commit 8bae26f096f6f9e39e3dc2e6c03ec4acb4e3f802
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/Application/Console/Commands/AnalyseCommand.php
@@ -100,7 +100,7 @@ private function getDirectory(InputInterface $input): string
/** @var string $directory */
$directory = $input->getArgument('directory') ?? $this->filesRepository->getDefaultDirectory();
if ($directory[0] !== DIRECTORY_SEPARATOR) {
if ($directory[0] !== DIRECTORY_SEPARATOR && preg_match('~\A[A-Z]:(?![^/\\\\])~i', $directory) === 0) {
$directory = (string) getcwd() . DIRECTORY_SEPARATOR . $directory;
}

0 comments on commit 8bae26f

Please sign in to comment.
You can’t perform that action at this time.