2021-11-22 09:39:27 -06:00

15 lines
495 B
JavaScript

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.bodyMinLength = void 0;
const ensure_1 = require("@commitlint/ensure");
const bodyMinLength = (parsed, _when = undefined, value = 0) => {
if (!parsed.body) {
return [true];
}
return [
(0, ensure_1.minLength)(parsed.body, value),
`body must not be shorter than ${value} characters`,
];
};
exports.bodyMinLength = bodyMinLength;
//# sourceMappingURL=body-min-length.js.map