Browse Source

Bug fix: get filename with extension in some condition

master
filesite 2 years ago
parent
commit
6a816fa857
  1. 2
      lib/DirScanner.php

2
lib/DirScanner.php

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

Loading…
Cancel
Save