File tree Expand file tree Collapse file tree 1 file changed +4
-7
lines changed
src/views/codeAnalytics/CodeObjectGroups Expand file tree Collapse file tree 1 file changed +4
-7
lines changed Original file line number Diff line number Diff line change @@ -38,18 +38,15 @@ export class HttpEndpointGroup {
38
38
create ( type : string , name : string ) : IListGroupItemBase {
39
39
40
40
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
+
46
43
47
44
return new GroupItem ( shortRouteName , type , `
48
45
<div class="group-item">
49
46
<span class="codicon codicon-symbol-interface" title="Endpoint"></span>
50
47
<span class="uppercase">
51
- <strong>HTTP </strong>${ parts [ 1 - offset ] } </span>
52
- <span>${ parts [ 2 - offset ] } </span>
48
+ <strong>HTTP </strong>${ parts [ 0 ] } </span>
49
+ <span>${ parts [ 1 ] } </span>
53
50
</div>
54
51
` ) ;
55
52
}
You can’t perform that action at this time.
0 commit comments