MCPcopy Index your code
hub / github.com/MALSync/MALSync / normalizeUrl

Function normalizeUrl

src/chibiScript/functions/core/asyncFunctions.ts:110–119  ·  view source on GitHub ↗
(url: string)

Source from the content-addressed store, hash-verified

108 const ignoreAnchor = options?.ignoreAnchor ?? true;
109
110 const normalizeUrl = (url: string) => {
111 let normalized = url;
112 if (ignoreQuery) {
113 normalized = normalized.split('?')[0];
114 }
115 if (ignoreAnchor) {
116 normalized = normalized.split('#')[0];
117 }
118 return normalized;
119 };
120
121 clearInterval(ctx.getInterval(_intervalKey));
122 let currentUrl = normalizeUrl(window.location.href);

Callers 1

asyncFunctions.tsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected