MCPcopy
hub / github.com/coder/mux / isRemotePolicySource

Function isRemotePolicySource

src/node/services/policyService.ts:51–53  ·  view source on GitHub ↗
(source: string)

Source from the content-addressed store, hash-verified

49}
50
51function isRemotePolicySource(source: string): boolean {
52 return source.startsWith("http://") || source.startsWith("https://");
53}
54
55function formatPolicySourceForLog(source: string): string {
56 if (!isRemotePolicySource(source)) {

Callers 2

formatPolicySourceForLogFunction · 0.85
loadPolicyTextFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected