@luban-cli/cli-plugin-service
Version:
A development runtime environment dependency
12 lines • 429 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.padTailSlash = exports.cleanAssetPath = void 0;
function cleanAssetPath(path) {
return path.replace(/(\/{2,})/g, "/").replace(/^\/|\/$/g, "");
}
exports.cleanAssetPath = cleanAssetPath;
function padTailSlash(path) {
return path.replace(/([^/])$/, "$1/");
}
exports.padTailSlash = padTailSlash;
//# sourceMappingURL=cleanAssetPath.js.map