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

Function formatSelectorLocation

packages/utils/src/lib/reports/formatting.ts:231–234  ·  view source on GitHub ↗
(selector: string)

Source from the content-addressed store, hash-verified

229}
230
231export function formatSelectorLocation(selector: string): string {
232 const lastSegment = selector.split(/\s*>>?\s*/).at(-1) ?? selector;
233 return selector === lastSegment ? selector : UNICODE_ELLIPSIS + lastSegment;
234}

Callers 2

auditDetailsIssuesFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected