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

Function withoutProtocol

packages/shared/src/lib/links.ts:62–63  ·  view source on GitHub ↗
(url: string)

Source from the content-addressed store, hash-verified

60 });
61
62export const withoutProtocol = (url: string): string =>
63 url.replace(/(^\w+:|^)\/\//, '');
64
65export const stripLinkParameters = (link: string): string => {
66 const { origin, pathname } = new URL(link);

Callers

nothing calls this directly

Calls 1

replaceMethod · 0.80

Tested by

no test coverage detected