MCPcopy Index your code
hub / github.com/QLHazyCoder/FlowPilot / parseUrlSafely

Function parseUrlSafely

background/navigation-utils.js:11–18  ·  view source on GitHub ↗
(rawUrl)

Source from the content-addressed store, hash-verified

9 } = deps;
10
11 function parseUrlSafely(rawUrl) {
12 if (!rawUrl) return null;
13 try {
14 return new URL(rawUrl);
15 } catch {
16 return null;
17 }
18 }
19
20 function normalizeSub2ApiUrl(rawUrl) {
21 const input = (rawUrl || '').trim() || DEFAULT_SUB2API_URL;

Callers 5

isSignupPasswordPageUrlFunction · 0.70
isLocalCpaUrlFunction · 0.70
matchesSourceUrlFamilyFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected