fix(folder): use memoized trie instead of handrolled path solution (closes #1767)
This commit is contained in:
1 parent
da1b6b37fe
commit
fbb4523853
5 files changed
+144
-42
No files matched your search
+1
-1
@@ -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") ||
|
||||
|
||||
Reference in new issue
Block a user