File tree 3 files changed +2
-6
lines changed
arduino-core/src/processing/app
3 files changed +2
-6
lines changed Original file line number Diff line number Diff line change @@ -826,8 +826,7 @@ private static String checkName(String origName) {
826
826
if (!newName .equals (origName )) {
827
827
String msg =
828
828
tr ("The sketch name had to be modified. Sketch names can only consist\n " +
829
- "of ASCII characters and numbers (but cannot start with a number).\n " +
830
- "They should also be less than 64 characters long." );
829
+ "of ASCII characters and numbers and be less than 64 characters long." );
831
830
System .out .println (msg );
832
831
}
833
832
return newName ;
Original file line number Diff line number Diff line change @@ -873,10 +873,6 @@ static public String sanitizeName(String origName) {
873
873
char c [] = origName .toCharArray ();
874
874
StringBuffer buffer = new StringBuffer ();
875
875
876
- // can't lead with a digit, so start with an underscore
877
- if ((c [0 ] >= '0' ) && (c [0 ] <= '9' )) {
878
- buffer .append ('_' );
879
- }
880
876
for (int i = 0 ; i < c .length ; i ++) {
881
877
if (((c [i ] >= '0' ) && (c [i ] <= '9' )) ||
882
878
((c [i ] >= 'a' ) && (c [i ] <= 'z' )) ||
Original file line number Diff line number Diff line change @@ -10,6 +10,7 @@ ARDUINO 1.8.4
10
10
* Make Preference window fit 600px height displays
11
11
* Fix error when renaming an unsaved, newly added file. Thanks @matthijskooijman
12
12
* Added the ability to increase/decrease font size via keyboard + mouse shortcuts (Ctrl + MouseWheel)
13
+ * Sketch names starting with a digit are now allowed
13
14
14
15
[libraries]
15
16
* Fixed wrong folder name for "Adafruit Circuit Playground" library, now it can be updated cleanly.
You can’t perform that action at this time.
0 commit comments