Skip to content

Commit

Permalink
fix: fix windows filepath issues #89
Browse files Browse the repository at this point in the history
  • Loading branch information
helloanoop committed Feb 12, 2023
1 parent 9d395de commit 48d26c0
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions packages/bruno-app/src/components/RunnerResults/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,15 @@ import { runCollectionFolder } from 'providers/ReduxStore/slices/collections/act
import { closeCollectionRunner } from 'providers/ReduxStore/slices/collections';
import { findItemInCollection, getTotalRequestCountInCollection } from 'utils/collections';
import { IconRefresh, IconCircleCheck, IconCircleX, IconCheck, IconX, IconRun } from '@tabler/icons';
import slash from 'utils/common/slash';
import ResponsePane from './ResponsePane';
import StyledWrapper from './StyledWrapper';

const getRelativePath = (fullPath, pathname) => {
// convert to unix style path
fullPath = slash(fullPath);
pathname = slash(pathname);

let relativePath = path.relative(fullPath, pathname);
const { dir, name } = path.parse(relativePath);
return path.join(dir, name);
Expand Down

0 comments on commit 48d26c0

Please sign in to comment.