PHP WebShell

Текущая директория: /opt/BitGoJS/node_modules/@commitlint/rules/lib

Просмотр файла: body-full-stop.js

import message from '@commitlint/message';
export const bodyFullStop = (parsed, when = 'always', value = '.') => {
    const input = parsed.body;
    if (!input) {
        return [true];
    }
    const negated = when === 'never';
    const hasStop = input[input.length - 1] === value;
    return [
        negated ? !hasStop : hasStop,
        message(['body', negated ? 'may not' : 'must', 'end with full stop']),
    ];
};
//# sourceMappingURL=body-full-stop.js.map

Выполнить команду


Для локальной разработки. Не используйте в интернете!