Skip to content

Commit

Permalink
fix?
Browse files Browse the repository at this point in the history
  • Loading branch information
Josh-Cena committed Aug 1, 2022
1 parent e2410e6 commit ef18207
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/docusaurus-utils/src/pathUtils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -119,5 +119,5 @@ export function addTrailingPathSeparator(str: string): string {
return str.endsWith(path.sep)
? str
: // If this is Windows, we need to change the forward slash to backward
`${str.replace(/\/$/, '')}${path.sep}`;
`${str.replace(/[\\/]$/, '')}${path.sep}`;
}

0 comments on commit ef18207

Please sign in to comment.