Skip to content

Commit 37481d6

Browse files
committed
fix: equalsIgnoreCase
1 parent 260a71c commit 37481d6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main/java/org/jadice/filetype/matchers/TextMatcher.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@ public boolean matches(final Context context) {
109109
String mimeType = "text/plain";
110110
final String statedExtension = context.getStatedExtension();
111111
LOGGER.debug("stated extension: {}", statedExtension);
112-
if (matches && statedExtension != null && statedExtension.equals("csv")) {
112+
if (matches && statedExtension != null && statedExtension.equalsIgnoreCase("csv")) {
113113
isCSV = true;
114114
mimeType = "text/csv";
115115
}

0 commit comments

Comments
 (0)