Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit c58e2e6

Browse files
committedSep 20, 2016
Fix regression: ignore case in file extensions
Fix #5389
1 parent 646c9f7 commit c58e2e6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed
 

‎app/src/processing/app/SketchController.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -150,7 +150,7 @@ protected void nameCode(String newName) {
150150
if (split.extension.equals(""))
151151
split.extension = Sketch.DEFAULT_SKETCH_EXTENSION;
152152

153-
if (!Sketch.EXTENSIONS.contains(split.extension)) {
153+
if (!Sketch.EXTENSIONS.contains(split.extension.toLowerCase())) {
154154
String msg = I18n.format(tr("\".{0}\" is not a valid extension."),
155155
split.extension);
156156
Base.showWarning(tr("Problem with rename"), msg, null);

0 commit comments

Comments
 (0)
Please sign in to comment.