mirror of
https://github.com/processing/processing4.git
synced 2026-04-25 13:44:30 +02:00
prevent Rename from allowing Java identifiers (5828, 5906)
This commit is contained in:
@@ -129,8 +129,8 @@ class Rename {
|
||||
final String newName = textField.getText().trim();
|
||||
if (!newName.isEmpty()) {
|
||||
if (newName.length() >= 1 &&
|
||||
newName.chars().limit(1).allMatch(Character::isUnicodeIdentifierStart) &&
|
||||
newName.chars().skip(1).allMatch(Character::isUnicodeIdentifierPart)) {
|
||||
newName.chars().limit(1).allMatch(Character::isJavaIdentifierStart) &&
|
||||
newName.chars().skip(1).allMatch(Character::isJavaIdentifierPart)) {
|
||||
rename(ps, binding, newName);
|
||||
window.setVisible(false);
|
||||
} else {
|
||||
|
||||
6
todo.txt
6
todo.txt
@@ -74,6 +74,9 @@ X https://github.com/processing/processing/issues/5805
|
||||
X https://github.com/processing/processing/pull/5909
|
||||
X updtes to Ukrainian translation
|
||||
X https://github.com/processing/processing/pull/5944
|
||||
X rename-variable menu allows Java identifiers
|
||||
X https://github.com/processing/processing/issues/5828
|
||||
X https://github.com/processing/processing/pull/5906
|
||||
|
||||
sampottinger
|
||||
X Fix JDK naming and cleanup in ant build
|
||||
@@ -129,9 +132,6 @@ _ windows anti-malware leaves browser stuck at 100%
|
||||
_ https://github.com/processing/processing/issues/5893
|
||||
|
||||
|
||||
quick fixes
|
||||
_ rename-variable menu allows Java identifiers
|
||||
_ https://github.com/processing/processing/pull/5906
|
||||
|
||||
from Casey
|
||||
_ Math for BLEND incorrect in the reference?
|
||||
|
||||
Reference in New Issue
Block a user