From ce2a74554e0a5455e4c64d1d5178fbc73a1f4c6c Mon Sep 17 00:00:00 2001 From: Austin Huang Date: Fri, 13 Nov 2020 18:44:33 -0500 Subject: [PATCH] fix #269 --- app/src/main/java/awais/instagrabber/utils/DownloadUtils.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/src/main/java/awais/instagrabber/utils/DownloadUtils.java b/app/src/main/java/awais/instagrabber/utils/DownloadUtils.java index 5192d5a7..bec84d43 100644 --- a/app/src/main/java/awais/instagrabber/utils/DownloadUtils.java +++ b/app/src/main/java/awais/instagrabber/utils/DownloadUtils.java @@ -176,7 +176,7 @@ public final class DownloadUtils { Pattern.matches("[a-zA-Z_0-9.\\-()%]+", filename)) { int dotPos = filename.lastIndexOf('.'); if (0 <= dotPos) { - return filename.substring(dotPos + 1); + return filename.substring(dotPos); } } }