We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent fd66488 commit d2b12ceCopy full SHA for d2b12ce
src/PhiremockExtension/Path.php
@@ -33,7 +33,7 @@ public function __construct(string $path)
33
34
public function absoluteOrRelativeToCodeceptionDir(): string
35
{
36
- if (substr($this->path, 0, 1) === '/') {
+ if (preg_match('~^(?:[a-z]:\\\|/)~i', $this->path) === 1) {
37
return $this->path;
38
}
39
return Configuration::projectDir() . $this->path;
0 commit comments