修正区分大小写的文件系统中,文件后缀名为大写时,系统提示该文件类型不支持的问题

dependabot/maven/office-plugin/commons-io-commons-io-2.7
youken9980 2021-03-31 13:28:02 +08:00 committed by kl
parent bcdb5ce0e6
commit 1fa7b4a911
1 changed files with 1 additions and 1 deletions

View File

@ -93,7 +93,7 @@ public class KkFileUtils {
* @return
*/
public static String suffixFromFileName(String fileName) {
return fileName.substring(fileName.lastIndexOf(".") + 1);
return fileName.substring(fileName.lastIndexOf(".") + 1).toLowerCase();
}