UNPKG

365 BJavaScriptView Raw
1"use strict";
2
3// This is a duplicate of the runtime util
4// file cache-dir/normalize-page-path.js
5module.exports = path => {
6 if (path === undefined) {
7 return path;
8 }
9
10 if (path === `/`) {
11 return `/`;
12 }
13
14 if (path.charAt(path.length - 1) === `/`) {
15 return path.slice(0, -1);
16 }
17
18 return path;
19};
20//# sourceMappingURL=normalize-page-path.js.map
\No newline at end of file