mirror of
https://github.com/arthur-pbty/xiao.git
synced 2026-06-17 21:40:51 +02:00
Fix lint
This commit is contained in:
+4
-4
@@ -23,14 +23,14 @@ module.exports = class FontArgumentType extends ArgumentType {
|
|||||||
});
|
});
|
||||||
if (foundExact.size === 1) return true;
|
if (foundExact.size === 1) return true;
|
||||||
if (foundExact.size > 0) found = foundExact;
|
if (foundExact.size > 0) found = foundExact;
|
||||||
return found.size <= 15 ?
|
return found.size <= 15
|
||||||
`${disambiguation(found.map(font => escapeMarkdown(font.name)), 'fonts', null)}\n` :
|
? `${disambiguation(found.map(font => escapeMarkdown(font.name)), 'fonts', null)}\n`
|
||||||
'Multiple fonts found. Please be more specific.';
|
: 'Multiple fonts found. Please be more specific.';
|
||||||
}
|
}
|
||||||
|
|
||||||
parse(value) {
|
parse(value) {
|
||||||
const choice = value.toLowerCase();
|
const choice = value.toLowerCase();
|
||||||
let found = this.client.fonts.filter(font => {
|
const found = this.client.fonts.filter(font => {
|
||||||
if (font.isVariant) return false;
|
if (font.isVariant) return false;
|
||||||
if (font.name.toLowerCase().includes(choice)) return true;
|
if (font.name.toLowerCase().includes(choice)) return true;
|
||||||
if (font.filenameNoExt.toLowerCase().includes(choice)) return true;
|
if (font.filenameNoExt.toLowerCase().includes(choice)) return true;
|
||||||
|
|||||||
Reference in New Issue
Block a user