1
0
Fork 0
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:
Ben Busby 2025-02-25 15:38:33 -07:00
parent 4b19ad5228
commit f3ab726cec
No known key found for this signature in database
GPG key ID: B9B7231E01D924A1
5 changed files with 16 additions and 53 deletions

View file

@ -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) {