mirror of
https://github.com/usebruno/bruno.git
synced 2026-07-08 14:35:03 +00:00
fix: path for newly added collection & remove option for outside collections (#6331)
* fixes * fixes * fix
This commit is contained in:
@@ -163,5 +163,10 @@ const getAbsoluteFilePath = (basePath, relativePath, shouldPosixify = false) =>
|
||||
return shouldPosixify ? posixify(result) : result;
|
||||
};
|
||||
|
||||
const normalizePath = (p) => {
|
||||
if (!p) return '';
|
||||
return p.replace(/\\/g, '/').replace(/\/+$/, '');
|
||||
};
|
||||
|
||||
export default brunoPath;
|
||||
export { getRelativePath, getBasename, getAbsoluteFilePath };
|
||||
export { getRelativePath, getBasename, getAbsoluteFilePath, normalizePath };
|
||||
|
||||
Reference in New Issue
Block a user