UNPKG

410 BJavaScriptView Raw
1'use strict';
2
3Object.defineProperty(exports, "__esModule", {
4 value: true
5});
6
7var _ensure = require('@commitlint/ensure');
8
9exports.default = function (parsed, when, value) {
10 if (!parsed.body) {
11 return [true];
12 }
13
14 return [(0, _ensure.minLength)(parsed.body, value), `body must not be shorter than ${value} characters`];
15};
16
17module.exports = exports['default'];
18//# sourceMappingURL=body-min-length.js.map
\No newline at end of file