MCPcopy Create free account
hub / github.com/Borrus-sudo/tinypages / htmlNormalizeURL

Function htmlNormalizeURL

packages/vite/src/node/utils.ts:38–45  ·  view source on GitHub ↗
(input: string)

Source from the content-addressed store, hash-verified

36}
37
38export 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
47export async function replaceAsync(str, regex, aReplacer) {
48 const substrs = [];

Callers 3

buildPageFunction · 0.90
buildFunction · 0.90
appendPreludeRebuildFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected