MCPcopy
hub / github.com/MALSync/MALSync / urlStrip

Function urlStrip

src/utils/general.ts:13–15  ·  view source on GitHub ↗
(url: string)

Source from the content-addressed store, hash-verified

11}
12
13export function urlStrip(url: string) {
14 return url.replace(/[#?].*/, '');
15}
16
17export function urlParam(url, name) {
18 const results = new RegExp(`[?&]${name}=([^&#]*)`).exec(url);

Callers 1

fullUrlChangeDetectFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected