Skip to content

Commit

Permalink
fix: Fix depth computation on windows
Browse files Browse the repository at this point in the history
  • Loading branch information
3y3 committed Oct 18, 2024
1 parent 9d139f2 commit d0c708d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/resolvers/md2html.ts
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ const getFileProps = async (options: ResolverOptions) => {
},
router: {
pathname,
depth: inputPath.split('/').length,
depth: inputPath.replace(/\\/g, '/').split('/').length,
},
lang,
langs,
Expand Down

0 comments on commit d0c708d

Please sign in to comment.