better regex and drag and drop

This commit is contained in:
nora 2020-11-19 22:00:51 +01:00
parent 501fa2f293
commit c24064c2c1
8 changed files with 110 additions and 11 deletions

View file

@ -19,7 +19,7 @@ public class UMLField {
*/
public UMLField(String line) {
String formatted = line.replaceAll("([+\\-~#]) ?((?:[a-z]|[A-Z]|[0-1])+): (.*)", "$1;$3;$2");
String formatted = line.replaceAll(Regex.FIELD_FIND_REGEX, "$1;$3;$2");
String[] formattedSplit = formatted.split(";");
this.encapsulation = switch (formattedSplit[0]) {