@@ -356,7 +356,8 @@ const TestComparison = ({ preSelectedTestRunIds = [] }: TestComparisonProps): Re
356356 const lastUnderscoreIndex = serviceUnit . lastIndexOf ( '_' ) ;
357357 const serviceApi = serviceUnit . substring ( 0 , lastUnderscoreIndex ) ;
358358 const unit = serviceUnit . substring ( lastUnderscoreIndex + 1 ) ;
359- const [ service , api ] = serviceApi . split ( '/' ) ;
359+ const [ service , ...apiParts ] = serviceApi . split ( '/' ) ;
360+ const api = apiParts . join ( '/' ) ;
360361 allCostItems . add ( `${ context } |${ service } /${ api } |${ unit } ` ) ;
361362 } ) ;
362363 } ) ;
@@ -1257,7 +1258,8 @@ const TestComparison = ({ preSelectedTestRunIds = [] }: TestComparisonProps): Re
12571258 const lastUnderscoreIndex = serviceUnit . lastIndexOf ( '_' ) ;
12581259 const serviceApi = serviceUnit . substring ( 0 , lastUnderscoreIndex ) ;
12591260 const unit = serviceUnit . substring ( lastUnderscoreIndex + 1 ) ;
1260- const [ service , api ] = serviceApi . split ( '/' ) ;
1261+ const [ service , ...apiParts ] = serviceApi . split ( '/' ) ;
1262+ const api = apiParts . join ( '/' ) ;
12611263 allCostItems . add ( `${ context } |${ service } /${ api } |${ unit } ` ) ;
12621264 } ) ;
12631265 } ) ;
@@ -1421,7 +1423,8 @@ const TestComparison = ({ preSelectedTestRunIds = [] }: TestComparisonProps): Re
14211423 const lastUnderscoreIndex = serviceUnit . lastIndexOf ( '_' ) ;
14221424 const serviceApi = serviceUnit . substring ( 0 , lastUnderscoreIndex ) ;
14231425 const unit = serviceUnit . substring ( lastUnderscoreIndex + 1 ) ;
1424- const [ service , api ] = serviceApi . split ( '/' ) ;
1426+ const [ service , ...apiParts ] = serviceApi . split ( '/' ) ;
1427+ const api = apiParts . join ( '/' ) ;
14251428 allUsageItems . add ( `${ context } |${ service } /${ api } |${ unit } ` ) ;
14261429 } ) ;
14271430 } ) ;
0 commit comments