MCPcopy Create free account
hub / github.com/code-pushup/cli / removeIndex

Function removeIndex

packages/utils/src/lib/plugin-url-aggregation.ts:16–18  ·  view source on GitHub ↗
(slug: string)

Source from the content-addressed store, hash-verified

14}
15
16export function removeIndex(slug: string): string {
17 return slug.replace(/-\d+$/, '');
18}
19
20export function extractGroupSlugs(groups: Group[]): string[] {
21 const slugs = groups.map(({ slug }) => removeIndex(slug));

Callers 2

extractGroupSlugsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected