MCPcopy Index your code
hub / github.com/coder/mux / criteriaToString

Function criteriaToString

src/node/runtime/sshConfigParser.ts:131–141  ·  view source on GitHub ↗
(value: MatchCriteriaValue | undefined)

Source from the content-addressed store, hash-verified

129}
130
131function criteriaToString(value: MatchCriteriaValue | undefined): string | undefined {
132 if (typeof value === "string") {
133 return value;
134 }
135
136 if (Array.isArray(value)) {
137 return value[0]?.val;
138 }
139
140 return undefined;
141}
142
143function criteriaToStringArray(value: MatchCriteriaValue | undefined): string[] {
144 if (typeof value === "string") {

Callers 1

applyNegatedExecMatchFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected