diff --git a/lib/DirScanner.php b/lib/DirScanner.php index 573a933..7a3d834 100644 --- a/lib/DirScanner.php +++ b/lib/DirScanner.php @@ -175,7 +175,7 @@ Class DirScanner { //获取文件名,不含文件后缀 private function getFilenameWithoutExtension($realpath) { - return preg_replace('/\.[a-z]+$/i', '', $this->basename($realpath)); + return preg_replace('/\.[^\.]+$/i', '', $this->basename($realpath)); } //根据路径生成目录数组