Skip to content

Commit e0b8d48

Browse files
committed
fixing wa
1 parent a426bff commit e0b8d48

File tree

1 file changed

+4
-7
lines changed

1 file changed

+4
-7
lines changed

src/views/codeAnalytics/CodeObjectGroups/EndpointGroup.ts

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -38,18 +38,15 @@ export class HttpEndpointGroup {
3838
create(type: string, name: string): IListGroupItemBase {
3939

4040
const shortRouteName = EndpointSchema.getShortRouteName(name);
41-
const parts = shortRouteName.split(' ');
42-
var offset =1;
43-
if (parts.length==3){
44-
offset=0;
45-
}
41+
const parts = shortRouteName.replace("HTTP ","").split(' ');
42+
4643

4744
return new GroupItem(shortRouteName, type, `
4845
<div class="group-item">
4946
<span class="codicon codicon-symbol-interface" title="Endpoint"></span>
5047
<span class="uppercase">
51-
<strong>HTTP </strong>${parts[1-offset]}&nbsp;</span>
52-
<span>${parts[2-offset]}</span>
48+
<strong>HTTP </strong>${parts[0]}&nbsp;</span>
49+
<span>${parts[1]}</span>
5350
</div>
5451
`);
5552
}

0 commit comments

Comments
 (0)