MCPcopy Create free account
hub / github.com/cortex-js/compute-engine / outputName

Function outputName

benchmarks/wester/extract.mjs:25–30  ·  view source on GitHub ↗
(href)

Source from the content-addressed store, hash-verified

23}
24
25function outputName(href) {
26 if (SPECIAL_NAMES[href]) return SPECIAL_NAMES[href];
27 const [, topic] = href.match(/^demos\/([^/]+)\/Math\.problems$/) ?? [];
28 if (!topic) throw new Error(`Unrecognized Mathematica suite URL: ${href}`);
29 return `test_${snakeCase(topic)}.m`;
30}
31
32function extractLinks(html) {
33 const links = [];

Callers 1

extract.mjsFile · 0.85

Calls 2

snakeCaseFunction · 0.85
matchMethod · 0.65

Tested by

no test coverage detected