ignore case in userscript

This commit is contained in:
Simon Bruder 2019-06-13 13:04:44 +00:00
parent 0d742e01c5
commit 11c515586d
No known key found for this signature in database
GPG key ID: 6F03E0000CC5B62F

View file

@ -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]
}
}