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 df3e562 commit 3938fffCopy full SHA for 3938fff
app/src/main/java/com/github/mobile/util/MarkdownUtils.java
@@ -15,6 +15,7 @@
15
*/
16
package com.github.mobile.util;
17
18
+import static java.util.Locale.US;
19
import android.text.TextUtils;
20
21
/**
@@ -31,10 +32,11 @@ public class MarkdownUtils {
31
32
* @param name
33
* @return true if the name has a markdown extension, false otherwise
34
- public static boolean isMarkdown(final String name) {
35
+ public static boolean isMarkdown(String name) {
36
if (TextUtils.isEmpty(name))
37
return false;
38
39
+ name = name.toLowerCase(US);
40
for (String extension : MARKDOWN_EXTENSIONS)
41
if (name.endsWith(extension))
42
return true;
0 commit comments