We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent fc48634 commit f328141Copy full SHA for f328141
src/util/common.js
@@ -60,7 +60,8 @@ export function extendedFetch(options, cookies) {
60
61
62
export function safeJoin(...path) {
63
- path[path.length - 1] = os.platform() === 'win32' ? path[path.length - 1].replace(/[\/\\:*?"<>|]/g, '') : path[path.length - 1]
+ const regex = os.platform() === 'win32' ? /[\/\\:*?"<>|]/g : /(\/|\\|:)/g
64
+ path[path.length - 1] = path[path.length - 1].replace(regex, '')
65
return join(...path)
66
}
67
0 commit comments