Backup E2E test: Fix path analysis on windows
This commit is contained in:
parent
fdc13d0af3
commit
1bfc1ed63e
1 changed files with 2 additions and 1 deletions
|
@ -266,7 +266,8 @@ describe('Backup', () => {
|
|||
return _.omit(model, ['id']);
|
||||
}
|
||||
|
||||
const twoSlashes = /.*\/.*\/.*/;
|
||||
const slash = path.sep === '/' ? '\\/' : '\\\\';
|
||||
const twoSlashes = new RegExp(`.*${slash}.*${slash}.*`);
|
||||
function removeDirs(dirs) {
|
||||
return _.filter(dirs, (fullDir) => {
|
||||
const dir = fullDir.replace(attachmentsPath, '');
|
||||
|
|
Loading…
Add table
Reference in a new issue