From 9cb40b119c5de4839b1c635018462e4086576060 Mon Sep 17 00:00:00 2001 From: westhecool <52859033+westhecool@users.noreply.github.com> Date: Thu, 2 May 2024 23:54:02 -0400 Subject: [PATCH] use .toLowerCase() in find --- index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/index.js b/index.js index d4da074..4ac9450 100644 --- a/index.js +++ b/index.js @@ -39,7 +39,7 @@ function getNames(local) { // findBy :: String, String -> Language function findBy(crit, val) { for (var i = 0; i < data.length; i++) { - if (val === data[i][crit]) { + if (val.toLowerCase() === data[i][crit].toLowerCase()) { return data[i]; } }