19 lines
505 B
JavaScript
19 lines
505 B
JavaScript
/**
|
|
* For a given page path, this function ensures that there is no backslash
|
|
* escaping slashes in the path. Example:
|
|
* - `foo\/bar\/baz` -> `foo/bar/baz`
|
|
*/ "use strict";
|
|
Object.defineProperty(exports, "__esModule", {
|
|
value: true
|
|
});
|
|
Object.defineProperty(exports, "normalizePathSep", {
|
|
enumerable: true,
|
|
get: function() {
|
|
return normalizePathSep;
|
|
}
|
|
});
|
|
function normalizePathSep(path) {
|
|
return path.replace(/\\/g, "/");
|
|
}
|
|
|
|
//# sourceMappingURL=normalize-path-sep.js.map
|