Skip to content

Commit f137a53

Browse files
committed
replace to dir separator before retrieving
1 parent 51db433 commit f137a53

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/LogViewerService.php

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -75,10 +75,11 @@ protected function getFilePathsMatchingPattern($pattern, $absolute = false): arr
7575
}
7676

7777
foreach ($scannedFiles as $file) {
78+
$checkFile = str_replace('/', DIRECTORY_SEPARATOR, $file);
7879
if (preg_match(pattern: Glob::toRegex(glob: $pattern), subject: $file)) {
7980
$files[] = isset($dirname)
80-
? $dirname.DIRECTORY_SEPARATOR.$file
81-
: $file;
81+
? $dirname.DIRECTORY_SEPARATOR.$checkFile
82+
: $checkFile;
8283
}
8384
}
8485

0 commit comments

Comments
 (0)