Return true if the name is valid for a Processing sketch. Extensions of the form .foo are ignored.
(String name)
| 1749 | * ignored. |
| 1750 | */ |
| 1751 | public static boolean isSanitaryName(String name) { |
| 1752 | final int dot = name.lastIndexOf('.'); |
| 1753 | if (dot >= 0) { |
| 1754 | name = name.substring(0, dot); |
| 1755 | } |
| 1756 | return sanitizeName(name).equals(name); |
| 1757 | } |
| 1758 | |
| 1759 | |
| 1760 | static final boolean asciiLetter(char c) { |
no test coverage detected