mirror of
https://github.com/Noratrieb/UMLetClassParser.git
synced 2026-01-15 09:05:05 +01:00
working
This commit is contained in:
parent
5b0937a8eb
commit
501fa2f293
6 changed files with 66 additions and 16 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("([+\\-~#]) ?((?:[a-z]|[A-Z]|[0-1])+): (.*)", "$1;$3;$2");
|
||||
String[] formattedSplit = formatted.split(";");
|
||||
|
||||
this.encapsulation = switch (formattedSplit[0]) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue