ignore case in userscript
This commit is contained in:
parent
0d742e01c5
commit
11c515586d
|
@ -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]
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue