MCPcopy Create free account
hub / github.com/apache/camel-website / supports

Function supports

github-release-binary.js:45–48  ·  view source on GitHub ↗
(ref)

Source from the content-addressed store, hash-verified

43const reference_pattern = /^github-release:(?<organization>[^\/]+)\/(?<repository>[^:]+)(?::(?<version>[^\/]+))?\/(?<binary>[^:]+)$/g;
44
45const supports = (ref) => {
46 reference_pattern.lastIndex = 0;
47 return reference_pattern.test(ref);
48}
49
50const parse = (ref) => {
51 const reference = new Function(`return \`${ref}\`;`).call();

Callers 3

supportsMethod · 0.85
supportsDescriptorMethod · 0.85
supportsLocatorMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected