Skip to content

Commit 662d40a

Browse files
committed
Fix bug in autocompletion of subtechniques
1 parent 2d92bee commit 662d40a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/attack_flow_builder/src/assets/configuration/AttackFlowCommandProcessor/AttackFlowCommandProcessor.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ export class AttackFlowCommandProcessor implements SynchronousCommandProcessor {
9393
if(tactText === undefined) {
9494
return null;
9595
}
96-
return tactText.split(/TA?\d+/)[1].trim();
96+
return tactText.split(/TA\d+/)[1].trim();
9797
}
9898

9999
/**
@@ -120,7 +120,7 @@ export class AttackFlowCommandProcessor implements SynchronousCommandProcessor {
120120
if(techText === undefined) {
121121
return null;
122122
}
123-
return techText.split(/TA?\d+/)[1].trim();
123+
return techText.split(/T\d+(?:\.\d+)?/)[1].trim();
124124
}
125125

126126
/**

0 commit comments

Comments
 (0)