UNPKG

511 BJavaScriptView Raw
1"use strict";
2Object.defineProperty(exports, "__esModule", { value: true });
3exports.footerMinLength = void 0;
4const ensure_1 = require("@commitlint/ensure");
5const footerMinLength = (parsed, _when = undefined, value = 0) => {
6 if (!parsed.footer) {
7 return [true];
8 }
9 return [
10 (0, ensure_1.minLength)(parsed.footer, value),
11 `footer must not be shorter than ${value} characters`,
12 ];
13};
14exports.footerMinLength = footerMinLength;
15//# sourceMappingURL=footer-min-length.js.map
\No newline at end of file