MCPcopy Create free account
hub / github.com/UsefulSoftwareCo/executor / basename

Function basename

packages/core/sdk/src/sentry-grouping.ts:97–101  ·  view source on GitHub ↗
(path: string)

Source from the content-addressed store, hash-verified

95 * host- and port-specific origins (`http://127.0.0.1:4789/assets/…`), which are
96 * volatile in their own right. */
97const basename = (path: string): string => {
98 const clean = path.split(/[?#]/)[0] ?? path;
99 const segments = clean.split(/[/\\]/);
100 return segments[segments.length - 1] || clean;
101};
102
103const frameLocation = (frame: GroupingFrame): string | undefined => {
104 if (frame.module) return stripContentHashes(frame.module);

Callers 9

frameLocationFunction · 0.85
makeScopeIdFunction · 0.85
makeTenantIdFunction · 0.85
sqliteBackupPathsForTestFunction · 0.85
provisionLinuxFunction · 0.85
pushDirAsTarFunction · 0.85
resolveArtifactFunction · 0.85
urlSegmentsFunction · 0.85
pr-media.tsFile · 0.85

Calls

no outgoing calls

Tested by 1

sqliteBackupPathsForTestFunction · 0.68