You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
9 lines
198 B
9 lines
198 B
2 years ago
|
var UNIX_SEPARATOR = '/';
|
||
|
var WINDOWS_SEPARATOR_PATTERN = /\\/g;
|
||
|
|
||
|
function normalizePath(path) {
|
||
|
return path.replace(WINDOWS_SEPARATOR_PATTERN, UNIX_SEPARATOR);
|
||
|
}
|
||
|
|
||
|
module.exports = normalizePath;
|