bpms_site/.svn/pristine/91/91195fe75ee262a13d0c892b951292ce5e734c4f.svn-base
2025-11-02 16:38:49 +03:30

18 lines
524 B
Plaintext

/**
* For a given page path, this function ensures that there is a leading slash.
* If there is not a leading slash, one is added, otherwise it is noop.
*/ "use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
Object.defineProperty(exports, "ensureLeadingSlash", {
enumerable: true,
get: function() {
return ensureLeadingSlash;
}
});
function ensureLeadingSlash(path) {
return path.startsWith("/") ? path : "/" + path;
}
//# sourceMappingURL=ensure-leading-slash.js.map