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