WIP - add extractor, generate snippet_data
This commit is contained in:
20
node_modules/gatsby/dist/utils/normalize-page-path.js
generated
vendored
Normal file
20
node_modules/gatsby/dist/utils/normalize-page-path.js
generated
vendored
Normal file
@ -0,0 +1,20 @@
|
||||
"use strict";
|
||||
|
||||
// This is a duplicate of the runtime util
|
||||
// file cache-dir/normalize-page-path.js
|
||||
module.exports = path => {
|
||||
if (path === undefined) {
|
||||
return path;
|
||||
}
|
||||
|
||||
if (path === `/`) {
|
||||
return `/`;
|
||||
}
|
||||
|
||||
if (path.charAt(path.length - 1) === `/`) {
|
||||
return path.slice(0, -1);
|
||||
}
|
||||
|
||||
return path;
|
||||
};
|
||||
//# sourceMappingURL=normalize-page-path.js.map
|
||||
Reference in New Issue
Block a user