MCPcopy Create free account
hub / github.com/avoidwork/tenso / scheme

Function scheme

src/utils/scheme.js:8–14  ·  view source on GitHub ↗
(arg = EMPTY)

Source from the content-addressed store, hash-verified

6 * @returns {boolean} True if the string contains a slash or starts with URI scheme character
7 */
8export function scheme (arg = EMPTY) {
9 if (arg === null || arg === undefined) {
10 arg = EMPTY;
11 }
12
13 return arg.includes(SLASH) || arg.startsWith(URI_SCHEME) || arg.startsWith(":");
14}

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected