mirror of
https://github.com/fooflington/selfdefined.git
synced 2025-01-22 17:30:00 +00:00
fix(flags): convert flag level to lowercase before trying to get infos
This commit is contained in:
parent
98bac08e84
commit
f12c5c9fed
@ -66,7 +66,7 @@ module.exports = function(config) {
|
|||||||
]);
|
]);
|
||||||
|
|
||||||
if (flag) {
|
if (flag) {
|
||||||
const info = cleanText.get(flag.level);
|
const info = cleanText.get(flag.level.toLowerCase());
|
||||||
|
|
||||||
const sep = flag.text && info.text ? '—' : '';
|
const sep = flag.text && info.text ? '—' : '';
|
||||||
const text = flag.text ? [info.text, flag.text].join(sep) : info.text;
|
const text = flag.text ? [info.text, flag.text].join(sep) : info.text;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user