From 11c515586d880a16337f3898802d1ce545a825fd Mon Sep 17 00:00:00 2001 From: Simon Bruder Date: Thu, 13 Jun 2019 13:04:44 +0000 Subject: [PATCH] ignore case in userscript --- startpage.user.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/startpage.user.js b/startpage.user.js index f35b6d2..530edc0 100644 --- a/startpage.user.js +++ b/startpage.user.js @@ -18,7 +18,7 @@ fetch('https://s3.sbruder.de/cdn/bangs/bangs.json') matchBang = searchQuery.match(/(.*) \!(.*)/) if (matchBang !== null) { parsedBang = { - 'bang': matchBang[2], + 'bang': matchBang[2].toLowerCase(), 'query': matchBang[1] } } @@ -26,7 +26,7 @@ fetch('https://s3.sbruder.de/cdn/bangs/bangs.json') matchBang = searchQuery.match(/\!(.*) (.*)/) if (matchBang !== null) { parsedBang = { - 'bang': matchBang[1], + 'bang': matchBang[1].toLowerCase(), 'query': matchBang[2] } }