(html)
| 30 | } |
| 31 | |
| 32 | function extractLinks(html) { |
| 33 | const links = []; |
| 34 | const pattern = /HREF="(demos\/[^"]+\/Math\.(?:problems|heat|dif|local|match))"/g; |
| 35 | for (const match of html.matchAll(pattern)) links.push(match[1]); |
| 36 | return [...new Set(links)]; |
| 37 | } |
| 38 | |
| 39 | function isTiming(line) { |
| 40 | return /^\s*(?:\d+(?:\.\d*)?|\.\d+)\s+Second(?:s)?\s*$/.test(line); |