mirror of
https://github.com/Noratrieb/UMLetClassParser.git
synced 2026-01-15 09:05:05 +01:00
better regex and drag and drop
This commit is contained in:
parent
501fa2f293
commit
c24064c2c1
8 changed files with 110 additions and 11 deletions
|
|
@ -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]) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue