From 8fbf706111b1e471f1d7df019861a840928f599a Mon Sep 17 00:00:00 2001 From: "Jan T. Sott" Date: Wed, 25 Sep 2019 21:17:04 +0200 Subject: [PATCH] Case insensitive search I was a bit confused that I didn't get results when searching, e.g. `caniuse IndexedDB`. This PR converts all search terms to lowercase, hence making it case-insensitive. --- index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/index.js b/index.js index 3278e11..cba6d20 100755 --- a/index.js +++ b/index.js @@ -218,7 +218,7 @@ Object.keys(data.data).forEach((key) => { }); // find and display result -const name = process.argv[2]; +const name = process.argv[2].toLowerCase(); const res = findResult(name); if (res !== undefined) {