Skip to content

Commit 8f1f706

Browse files
committedMay 24, 2021
Fix relative path generation on windows
1 parent 4257bc6 commit 8f1f706

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed
 

‎src/spec/Reference.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -338,7 +338,7 @@ private function adjustRelativeReferences($referencedDocument, $basePath, $baseD
338338
private function makeRelativePath($base, $path)
339339
{
340340
if (strpos($path, dirname($base)) === 0) {
341-
return '.' . DIRECTORY_SEPARATOR . substr($path, strlen(dirname($base) . DIRECTORY_SEPARATOR));
341+
return './' . substr($path, strlen(dirname($base) . '/'));
342342
}
343343

344344
return $path;

0 commit comments

Comments
 (0)