MCPcopy Create free account
hub / github.com/dailydotdev/apps / removeLinkTargetElement

Function removeLinkTargetElement

packages/shared/src/lib/strings.ts:15–19  ·  view source on GitHub ↗
(link: string)

Source from the content-addressed store, hash-verified

13};
14
15export const removeLinkTargetElement = (link: string): string => {
16 const { origin, pathname, search } = new URL(link);
17
18 return origin + pathname + search;
19};
20
21export const capitalize = (value: string): string =>
22 (value && value[0].toUpperCase() + value.slice(1)) || '';

Callers 1

index.tsxFile · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected