fix(folder): use memoized trie instead of handrolled path solution (closes #1767)

This commit is contained in:
Jacky Zhao
2025-03-14 15:08:23 -07:00
parent da1b6b37fe
commit fbb4523853
5 changed files with 144 additions and 42 deletions

View File

@ -247,7 +247,7 @@ export function transformLink(src: FullSlug, target: string, opts: TransformOpti
}
// path helpers
function isFolderPath(fplike: string): boolean {
export function isFolderPath(fplike: string): boolean {
return (
fplike.endsWith("/") ||
endsWith(fplike, "index") ||