fix(flags): convert flag level to lowercase before trying to get infos

This commit is contained in:
Oscar 2020-01-17 08:53:48 +01:00
parent 98bac08e84
commit f12c5c9fed

View File

@ -66,7 +66,7 @@ module.exports = function(config) {
]);
if (flag) {
const info = cleanText.get(flag.level);
const info = cleanText.get(flag.level.toLowerCase());
const sep = flag.text && info.text ? '—' : '';
const text = flag.text ? [info.text, flag.text].join(sep) : info.text;