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 {
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 ] } </span>
52- <span>${ parts [ 2 - offset ] } </span>
48+ <strong>HTTP </strong>${ parts [ 0 ] } </span>
49+ <span>${ parts [ 1 ] } </span>
5350 </div>
5451 ` ) ;
5552 }
You can’t perform that action at this time.
0 commit comments