Skip to content
Snippets Groups Projects
Commit 80be2a01 authored by Jakub Konvička's avatar Jakub Konvička
Browse files

refactor: modify regex group

parent f4a669d4
Branches
1 merge request!15merge: develop into main
Pipeline #872 canceled with stages
in 44 seconds
......@@ -119,7 +119,7 @@ public class CppClassDiagramVisitor : CPP14ParserBaseVisitor<object>
Match aggregationMatch = Regex.Match(atribute.Type, aggregationPattern);
Match compositionMatch = Regex.Match(atribute.Type, compositionPattern);
if (aggregationMatch.Success && !string.IsNullOrEmpty(aggregationMatch.Groups[2].Value))
if (aggregationMatch.Success && !string.IsNullOrEmpty(aggregationMatch.Groups[3].Value))
{
// Aggregation type
string? typeName = aggregationMatch.Groups[2].Value; // Second capturing group
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment