MCPcopy Index your code
hub / github.com/atomicdata-dev/atomic-data-browser / isValidURL

Function isValidURL

lib/src/client.ts:125–132  ·  view source on GitHub ↗
(subject: string)

Source from the content-addressed store, hash-verified

123
124/** Returns true if a URL is valid. */
125export function isValidURL(subject: string): boolean {
126 try {
127 tryValidURL(subject);
128 return true;
129 } catch (e) {
130 return false;
131 }
132}
133
134/**
135 * Removes query params from the URL if it can build a URL. Will return the

Callers 5

useBaseURLFunction · 0.90
HotKeysWrapperFunction · 0.90
ResourceContextMenuFunction · 0.90
ShowFunction · 0.90
useLocalSearchFunction · 0.90

Calls 1

tryValidURLFunction · 0.85

Tested by

no test coverage detected