Skip to content

Commit 84c6018

Browse files
authored
support relative paths on Windows (#60)
1 parent 36e9518 commit 84c6018

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/Measurements.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ public function addFile(string $filename): void
5959
{
6060
$this->directoryNames[] = dirname($filename);
6161

62-
$relativeFilePath = str_replace(getcwd() . '/', '', $filename);
62+
$relativeFilePath = str_replace(getcwd() . PHP_EOL, '', $filename);
6363
$this->filesToSize[$relativeFilePath] = substr_count((string) file_get_contents($filename), "\n") + 1;
6464

6565
++$this->fileCount;

0 commit comments

Comments
 (0)