diff --git a/src/LogViewer.php b/src/LogViewer.php index c8682a6..4015e82 100644 --- a/src/LogViewer.php +++ b/src/LogViewer.php @@ -192,7 +192,7 @@ class LogViewer public function isCurrentFile($file) { - return $this->replaceBasePath($this->getFilePath()) === rtrim($this->currentDirectory.'/'.$file, '/'); + return $this->replaceBasePath($this->getFilePath()) === trim($this->currentDirectory.'/'.$file, '/'); } /**