mirror of
https://github.com/arduino/Arduino.git
synced 2025-02-27 21:54:30 +01:00
added support for '-' and '.' but both not as the first as first character
This commit is contained in:
parent
27576919a4
commit
3be6eb84b9
@ -2063,9 +2063,10 @@ public class Sketch {
|
||||
for (int i = 0; i < c.length; i++) {
|
||||
if (((c[i] >= '0') && (c[i] <= '9')) ||
|
||||
((c[i] >= 'a') && (c[i] <= 'z')) ||
|
||||
((c[i] >= 'A') && (c[i] <= 'Z'))) {
|
||||
((c[i] >= 'A') && (c[i] <= 'Z')) ||
|
||||
((i > 0) && (c[i] == '-')) ||
|
||||
((i > 0) && (c[i] == '.'))) {
|
||||
buffer.append(c[i]);
|
||||
|
||||
} else {
|
||||
buffer.append('_');
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user