Skip to content

Commit

Permalink
feat(Util): add missing extensions
Browse files Browse the repository at this point in the history
Closes #26.
  • Loading branch information
yarl committed May 5, 2017
1 parent 9428e1f commit 9137bed
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions src/pattypan/Util.java
Original file line number Diff line number Diff line change
Expand Up @@ -123,8 +123,11 @@ public static ColumnConstraints newColumn(int value, String unit, HPos position)
}

/* file utils */
private final static ArrayList<String> allowedExtentionImage
= new ArrayList<>(Arrays.asList("png", "gif", "jpg", "jpeg", "ogg", "svg", "tiff", "tif", "wav", "xcf"));
private final static ArrayList<String> allowedExtentionImage = new ArrayList<>(
Arrays.asList("djvu", "flac", "gif", "jpg", "jpeg", "mid",
"oga", "ogg","ogv", "opus", "png", "svg", "tiff",
"tif", "wav", "webm", "webp", "xcf")
);

public static String getNameFromFilename(String filename) {
int pos = filename.lastIndexOf(".");
Expand Down

0 comments on commit 9137bed

Please sign in to comment.