Skip to content

Commit b89e5da

Browse files
author
DGrothe-PhD
committed
addressed #33
1 parent fed65da commit b89e5da

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

src/app/UserDialog.java

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ public void switchMode(int mode) {
6868
private String selFile, selTargetFile, fileType = "";
6969
private static final String[] ALLOWED_INPUT_FILES = {
7070
".txt", ".md", ".tex", ".py", ".rb", ".yml", "html",
71-
".java", ".cpp", ".hpp", ".csv", ".cs"
71+
"eml", ".java", ".cpp", ".hpp", ".csv", ".cs"
7272
};
7373
private static final char[] ILLEGAL_CHARACTERS = {
7474
'/', '\n', '\r', '\t', '\0', '\f', '`', '?', '*',
@@ -518,9 +518,8 @@ public void actionPerformed(ActionEvent e){
518518
throw new WriteException("");
519519
}
520520
else if(fileType.length()<2) {
521-
setMessage(
522-
lang.getLocalizedText("suggestFileType")+
523-
String.join(", ", ALLOWED_INPUT_FILES), 1);
521+
setMessage(lang.getLocalizedText("suggestFileType")+
522+
" .txt, .html, .tex, .csv, ...", 1);
524523
throw new WriteException("");
525524
}
526525
selTargetFile = setWritingTarget();

0 commit comments

Comments
 (0)