Why Gemfury? Push, build, and install  RubyGems npm packages Python packages Maven artifacts PHP packages Go Modules Debian packages RPM packages NuGet packages

Repository URL to install this package:

Details    
gateway-proxy / usr / share / gateway-proxy / app / node_modules / @commitlint / rules / lib / subject-max-length.js
Size: Mime:
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.subjectMaxLength = void 0;
const ensure_1 = require("@commitlint/ensure");
const subjectMaxLength = (parsed, _when = undefined, value = 0) => {
    const input = parsed.subject;
    if (!input) {
        return [true];
    }
    return [
        (0, ensure_1.maxLength)(input, value),
        `subject must not be longer than ${value} characters`,
    ];
};
exports.subjectMaxLength = subjectMaxLength;
//# sourceMappingURL=subject-max-length.js.map