Skip to content

Commit 2cfb372

Browse files
vinod0mCopilot
andauthored
Update src/parsers/plantuml_parser.py
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
1 parent fd923a9 commit 2cfb372

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/parsers/plantuml_parser.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -204,7 +204,7 @@ def _extract_relationships(self, content: str) -> List[DiagramRelationship]:
204204
# Association: A -- B, A --> B
205205
(r'(\w+)\s*-->\s*(\w+)', 'association', 'normal'),
206206
(r'(\w+)\s*<--\s*(\w+)', 'association', 'reverse'),
207-
(r'\b(?!o|O|\*)\w+\b\s*--\s*\b\w+\b', 'association', 'normal'),
207+
(r'(\w+)\s*(?<!o)(?<!\*)--\s*(\w+)', 'association', 'normal'),
208208

209209
# Dependency: A ..> B, A <.. B
210210
(r'(\w+)\s*\.\.>\s*(\w+)', 'dependency', 'normal'),

0 commit comments

Comments
 (0)