We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 27e246a commit 9722602Copy full SHA for 9722602
utilcode/src/main/java/com/blankj/utilcode/utils/FileUtils.java
@@ -1086,6 +1086,6 @@ public static String getFileExtension(String filePath) {
1086
int lastPoi = filePath.lastIndexOf('.');
1087
int lastSep = filePath.lastIndexOf(File.separator);
1088
if (lastPoi == -1 || lastSep >= lastPoi) return "";
1089
- return filePath.substring(lastPoi);
+ return filePath.substring(lastPoi+1);
1090
}
1091
-}
+}
0 commit comments