fix(folder): use memoized trie instead of handrolled path solution (closes #1767)
This commit is contained in:
parent
da1b6b37fe
commit
fbb4523853
5 changed files with 144 additions and 42 deletions
|
@ -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") ||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue