From 094bf7bc60122c94ff16caf51a6df58125a7a3af Mon Sep 17 00:00:00 2001 From: Jack Scotson Date: Sun, 8 Oct 2023 10:47:34 +0100 Subject: [PATCH] fix(#251): Uses os.release to get correct pathsep for windows --- .../src/providers/ReduxStore/slices/collections/index.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/bruno-app/src/providers/ReduxStore/slices/collections/index.js b/packages/bruno-app/src/providers/ReduxStore/slices/collections/index.js index 495989eb..72c82f8c 100644 --- a/packages/bruno-app/src/providers/ReduxStore/slices/collections/index.js +++ b/packages/bruno-app/src/providers/ReduxStore/slices/collections/index.js @@ -1,4 +1,3 @@ -import path from 'path'; import { uuid } from 'utils/common'; import find from 'lodash/find'; import map from 'lodash/map'; @@ -24,8 +23,9 @@ import { } from 'utils/collections'; import { parseQueryParams, stringifyQueryParams } from 'utils/url'; import { getSubdirectoriesFromRoot, getDirectoryName } from 'utils/common/platform'; +import os from 'os'; -const PATH_SEPARATOR = path.sep; +const PATH_SEPARATOR = /Windows/i.test(os.release()) ? '\\' : '/'; const initialState = { collections: []