mirror of
https://github.com/usebruno/bruno.git
synced 2024-12-23 15:19:01 +01:00
fix(#251): Uses os.release to get correct pathsep for windows
This commit is contained in:
parent
e83c2da798
commit
094bf7bc60
@ -1,4 +1,3 @@
|
|||||||
import path from 'path';
|
|
||||||
import { uuid } from 'utils/common';
|
import { uuid } from 'utils/common';
|
||||||
import find from 'lodash/find';
|
import find from 'lodash/find';
|
||||||
import map from 'lodash/map';
|
import map from 'lodash/map';
|
||||||
@ -24,8 +23,9 @@ import {
|
|||||||
} from 'utils/collections';
|
} from 'utils/collections';
|
||||||
import { parseQueryParams, stringifyQueryParams } from 'utils/url';
|
import { parseQueryParams, stringifyQueryParams } from 'utils/url';
|
||||||
import { getSubdirectoriesFromRoot, getDirectoryName } from 'utils/common/platform';
|
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 = {
|
const initialState = {
|
||||||
collections: []
|
collections: []
|
||||||
|
Loading…
Reference in New Issue
Block a user