MCPcopy Index your code
hub / github.com/apache/camel-website / parse

Function parse

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

Source from the content-addressed store, hash-verified

48}
49
50const parse = (ref) => {
51 const reference = new Function(`return \`${ref}\`;`).call();
52
53 reference_pattern.lastIndex = 0;
54 const parts = [...reference.matchAll(reference_pattern)][0];
55
56 return {
57 organization: parts[1],
58 repository: parts[2],
59 version: parts[3] || 'latest',
60 binary: parts[4]
61 }
62}
63
64module.exports = {
65 name: `github-release-binary`,

Callers 4

fetchFromNetworkMethod · 0.85
resolveMethod · 0.85
generateHtmlIndexFunction · 0.85
generateMarkdownFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected