mirror of
https://github.com/benbusby/farside.git
synced 2025-04-25 13:10:02 +00:00
Add missing handling for 4get and LibreY, remove LibreX
This commit is contained in:
parent
4b19ad5228
commit
f3ab726cec
5 changed files with 16 additions and 53 deletions
|
@ -97,6 +97,20 @@ var regexMap = []RegexMapping{
|
|||
Pattern: regexp.MustCompile(`genius\.com|dumb`),
|
||||
Targets: []string{"dumb"},
|
||||
},
|
||||
{
|
||||
// 4get
|
||||
// Note: Could be used for redirecting other search engine
|
||||
// requests, but would need special handling
|
||||
Pattern: regexp.MustCompile("4get"),
|
||||
Targets: []string{"4get"},
|
||||
},
|
||||
{
|
||||
// LibreY
|
||||
// Note: Could be used for redirecting other search engine
|
||||
// requests, but would need special handling
|
||||
Pattern: regexp.MustCompile("librex|librey"),
|
||||
Targets: []string{"librey"},
|
||||
},
|
||||
}
|
||||
|
||||
func MatchRequest(service string) (string, error) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue