(input: string)
| 36 | } |
| 37 | |
| 38 | export function htmlNormalizeURL(input: string) { |
| 39 | let normalizedUrl = input.endsWith("/") |
| 40 | ? input + "index.html" |
| 41 | : /\..*?$/.test(input) |
| 42 | ? input |
| 43 | : input + ".html"; |
| 44 | return normalizedUrl.replace(/\..*?$/, ".html"); |
| 45 | } |
| 46 | |
| 47 | export async function replaceAsync(str, regex, aReplacer) { |
| 48 | const substrs = []; |
no outgoing calls
no test coverage detected