(href)
| 23 | } |
| 24 | |
| 25 | function 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 | |
| 32 | function extractLinks(html) { |
| 33 | const links = []; |
no test coverage detected