UNPKG

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