From afcfb59ae5b6211a14ae44adf9c1ca9462f35153 Mon Sep 17 00:00:00 2001 From: Samuel Holtzkampf Date: Wed, 4 May 2016 09:36:36 +0200 Subject: [PATCH] Update media type method --- .../java/coza/opencollab/epub/creator/util/MediaTypeUtil.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/coza/opencollab/epub/creator/util/MediaTypeUtil.java b/src/main/java/coza/opencollab/epub/creator/util/MediaTypeUtil.java index 914c8ba..6240cc6 100644 --- a/src/main/java/coza/opencollab/epub/creator/util/MediaTypeUtil.java +++ b/src/main/java/coza/opencollab/epub/creator/util/MediaTypeUtil.java @@ -85,7 +85,7 @@ public class MediaTypeUtil { * @return the mime type */ public static String getMediaTypeFromFilename(String fileName) { - String ext = fileName.substring(fileName.lastIndexOf(".") + 1); + String ext = fileName.substring(fileName.lastIndexOf('.') + 1); return getMediaTypeFromExt(ext); }