noodl-loader
Version:
Loader for noodl applications
11 lines • 371 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.trimPageName = void 0;
const noodl_core_1 = require("noodl-core");
function trimPageName(value) {
if (!noodl_core_1.is.str(value))
return '';
return value.replace(/\.yml|_en/g, '').trim();
}
exports.trimPageName = trimPageName;
//# sourceMappingURL=trim.js.map