From da90200faea02a0f8dd9539da5455c8d6525339d Mon Sep 17 00:00:00 2001 From: Dan Gowans Date: Thu, 7 Nov 2024 13:08:31 -0500 Subject: [PATCH] fix building whitelist --- wordLists/writeGoodComments.whitelist.js | 2 +- wordLists/writeGoodComments.whitelist.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/wordLists/writeGoodComments.whitelist.js b/wordLists/writeGoodComments.whitelist.js index 20a1909..380a0ba 100644 --- a/wordLists/writeGoodComments.whitelist.js +++ b/wordLists/writeGoodComments.whitelist.js @@ -9,7 +9,7 @@ const whitelistLowercase = ['only', 'validate']; */ export const whitelist = [...whitelistLowercase]; // List is case-sensitive, include words starting with capitals. -for (const word of whitelist) { +for (const word of whitelistLowercase) { whitelist.push(capitalize(word)); } export default whitelist; diff --git a/wordLists/writeGoodComments.whitelist.ts b/wordLists/writeGoodComments.whitelist.ts index 5185af4..eb5b9a8 100644 --- a/wordLists/writeGoodComments.whitelist.ts +++ b/wordLists/writeGoodComments.whitelist.ts @@ -15,7 +15,7 @@ const whitelistLowercase = ['only', 'validate'] satisfies Array< export const whitelist = [...whitelistLowercase] as string[] // List is case-sensitive, include words starting with capitals. -for (const word of whitelist) { +for (const word of whitelistLowercase) { whitelist.push(capitalize(word)) }