Echo/node_modules/@vuepress/shared-utils/lib/ensureLeadingSlash.js

5 lines
108 B
JavaScript
Raw Normal View History

2021-02-11 21:31:41 +08:00
"use strict";
module.exports = function ensureLeadingSlash(path) {
return path.replace(/^\/?/, '/');
};