mirror of
https://github.com/processing/processing4.git
synced 2026-06-16 04:26:26 +02:00
Add failsafe for #713.
This commit is contained in:
@@ -399,7 +399,10 @@ public class VariableNode implements MutableTreeNode {
|
||||
private String describeArray(String fullDescription) {
|
||||
Matcher matcher = ARRAY_REGEX.matcher(fullDescription);
|
||||
StringJoiner joiner = new StringJoiner("");
|
||||
System.out.println(matcher.matches());
|
||||
if (!matcher.matches()) {
|
||||
return fullDescription;
|
||||
}
|
||||
|
||||
joiner.add(matcher.group("prefix")); // Type without brackets
|
||||
joiner.add(matcher.group("bounded")); // Brackets with numbers
|
||||
joiner.add(matcher.group("unbounded")); // Brackets without numbers
|
||||
|
||||
Reference in New Issue
Block a user