mirror of
https://github.com/facebook/docusaurus.git
synced 2025-07-22 19:17:46 +02:00
fix(utils): always match exclusion root dirs as complete folder paths (#7864)
* fix(utils): always match exclusion root dirs as complete folder paths * fix * fix? * fix for real
This commit is contained in:
parent
3a0e90eacd
commit
40827c6c72
5 changed files with 35 additions and 5 deletions
|
@ -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}`;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue