From b3a68de31aea9fb43416398d9ba8035873933ef2 Mon Sep 17 00:00:00 2001 From: Dragon Fire Date: Fri, 3 May 2024 11:15:43 -0400 Subject: [PATCH] Fix --- types/font.js | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/types/font.js b/types/font.js index cea3654e..3835b568 100644 --- a/types/font.js +++ b/types/font.js @@ -15,11 +15,7 @@ module.exports = class FontArgument extends Argument { }); if (found.size === 0) return false; if (found.size === 1) return true; - const foundExact = found.filter(font => { - if (font.name.toLowerCase() === choice) return true; - if (font.filenameNoExt.toLowerCase() === choice) return true; - return false; - }); + const foundExact = found.filter(font => font.filenameNoExt.toLowerCase() === choice); if (foundExact.size === 1) return true; return false; }