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

Function stripContentHashes

packages/core/sdk/src/sentry-grouping.ts:73–76  ·  view source on GitHub ↗
(value: string)

Source from the content-addressed store, hash-verified

71 * leaving every other character in place.
72 */
73export const stripContentHashes = (value: string): string =>
74 value.replace(HASH_TAIL, (match, segment: string) =>
75 looksLikeContentHash(segment) ? "" : match,
76 );
77
78/** True when the value carries at least one build content hash. */
79export const containsContentHash = (value: string): boolean => stripContentHashes(value) !== value;

Callers 4

containsContentHashFunction · 0.85
frameLocationFunction · 0.85

Calls 2

looksLikeContentHashFunction · 0.85
replaceMethod · 0.65

Tested by

no test coverage detected