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); }