(link: string)
| 12 | }> = [] |
| 13 | |
| 14 | function isRelativeLink(link: string) { |
| 15 | return ( |
| 16 | !link.startsWith('/') && |
| 17 | !link.startsWith('http://') && |
| 18 | !link.startsWith('https://') && |
| 19 | !link.startsWith('//') && |
| 20 | !link.startsWith('#') && |
| 21 | !link.startsWith('mailto:') |
| 22 | ) |
| 23 | } |
| 24 | |
| 25 | /** Remove any trailing .md */ |
| 26 | function stripExtension(p: string): string { |
no outgoing calls
no test coverage detected