Skip to content

Commit e681704

Browse files
authored
Trim file paths with a platform-agnostic path separator (#91)
1 parent 5902c57 commit e681704

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Fornax.Template/loaders/postloader.fsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ let loadFile (rootDir: string) (n: string) =
8585
let summary, content = getContent text
8686

8787
let chopLength =
88-
if rootDir.EndsWith("\\") then rootDir.Length
88+
if rootDir.EndsWith(Path.DirectorySeparatorChar) then rootDir.Length
8989
else rootDir.Length + 1
9090

9191
let dirPart =

0 commit comments

Comments
 (0)