You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
16 lines
520 B
16 lines
520 B
2 years ago
|
"use strict";
|
||
|
Object.defineProperty(exports, "__esModule", { value: true });
|
||
|
exports.scopeMaxLength = void 0;
|
||
|
const ensure_1 = require("@commitlint/ensure");
|
||
|
const scopeMaxLength = (parsed, _when = undefined, value = 0) => {
|
||
|
const input = parsed.scope;
|
||
|
if (!input) {
|
||
|
return [true];
|
||
|
}
|
||
|
return [
|
||
|
(0, ensure_1.maxLength)(input, value),
|
||
|
`scope must not be longer than ${value} characters`,
|
||
|
];
|
||
|
};
|
||
|
exports.scopeMaxLength = scopeMaxLength;
|
||
|
//# sourceMappingURL=scope-max-length.js.map
|