1 | ;
|
2 | Object.defineProperty(exports, "__esModule", { value: true });
|
3 | exports.footerMinLength = void 0;
|
4 | const ensure_1 = require("@commitlint/ensure");
|
5 | const 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 | };
|
14 | exports.footerMinLength = footerMinLength;
|
15 | //# sourceMappingURL=footer-min-length.js.map |
\ | No newline at end of file |