Skip to content

Commit

Permalink
fix(usebruno#251): Uses os.release to get correct pathsep for windows
Browse files Browse the repository at this point in the history
  • Loading branch information
Scotsoo committed Oct 8, 2023
1 parent e83c2da commit 094bf7b
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import path from 'path';
import { uuid } from 'utils/common';
import find from 'lodash/find';
import map from 'lodash/map';
Expand All @@ -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: []
Expand Down

0 comments on commit 094bf7b

Please sign in to comment.