time-function/node_modules/@commitlint/rules/lib/footer-max-line-length.js
2021-11-22 09:39:27 -06:00

16 lines
560 B
JavaScript

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.footerMaxLineLength = void 0;
const ensure_1 = require("@commitlint/ensure");
const footerMaxLineLength = (parsed, _when = undefined, value = 0) => {
const input = parsed.footer;
if (!input) {
return [true];
}
return [
(0, ensure_1.maxLineLength)(input, value),
`footer's lines must not be longer than ${value} characters`,
];
};
exports.footerMaxLineLength = footerMaxLineLength;
//# sourceMappingURL=footer-max-line-length.js.map