Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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
62
export
const
withoutProtocol = (url: string): string =>
63
url.replace(/(^\w+:|^)\/\
//, '');
64
65
export
const
stripLinkParameters = (link: string): string => {
66
const
{ origin, pathname } =
new
URL(link);
Callers
nothing calls this directly
Calls
1
replace
Method · 0.80
Tested by
no test coverage detected