◐ Shell
reader mode source ↗
Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
File filter
Conversations
Jump to
Diff view
Apply and reload
Show whitespace
Diff view
Apply and reload
39 changes: 38 additions & 1 deletion app/src/processing/app/Sketch.java
Original file line number Diff line number Diff line change
Expand Up @@ -1210,7 +1210,7 @@ public void handleAddFile() {

if (result) {
// editor.statusNotice("One file added to the sketch.");
//Done from within TaskAddFile inner class when copying is completed
}
}

Expand Down Expand Up @@ -1720,6 +1720,43 @@ static final boolean asciiLetter(char c) {
static public String sanitizeName(String origName) {
char orig[] = origName.toCharArray();
StringBuilder sb = new StringBuilder();

// Can't lead with a digit (or anything besides a letter), so prefix with
// "sketch_". In 1.x this prefixed with an underscore, but those get shaved
Expand Down
2 changes: 2 additions & 0 deletions build/shared/lib/languages/PDE.properties
Original file line number Diff line number Diff line change
Expand Up @@ -439,6 +439,8 @@ ensure_exist.messages.unrecoverable.description = Could not properly re-save the

# Check name
check_name.messages.is_name_modified = The sketch name had to be modified. Sketch names can only consist\nof ASCII characters and numbers (but cannot start with a number).\nThey should also be less than 64 characters long.

# ---------------------------------------
# Contributions
Loading
Toggle all file notes Toggle all file annotations