diff --git a/src/PendingObjects/UsesCall.php b/src/PendingObjects/UsesCall.php index 56205be8..4523dab5 100644 --- a/src/PendingObjects/UsesCall.php +++ b/src/PendingObjects/UsesCall.php @@ -61,7 +61,7 @@ final class UsesCall $targets = array_map(function ($path): string { $startChar = DIRECTORY_SEPARATOR; - if ('\\' === DIRECTORY_SEPARATOR) { + if ('\\' === DIRECTORY_SEPARATOR || preg_match('~\A[A-Z]:(?![^/\\\\])~i', $path) > 0) { $path = (string) preg_replace_callback('~^(?P[a-z]+:\\\)~i', function ($match): string { return strtolower($match['drive']); }, $path);