MCPcopy Index your code
hub / github.com/coder/coder / isURL

Function isURL

site/src/utils/docs.ts:40–47  ·  view source on GitHub ↗
(value: string)

Source from the content-addressed store, hash-verified

38};
39
40const isURL = (value: string) => {
41 try {
42 new URL(value);
43 return true;
44 } catch {
45 return false;
46 }
47};

Callers 1

getBaseDocsURLFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected