1
0
Fork 0
mirror of https://github.com/benbusby/farside.git synced 2025-04-19 18:38:42 +00:00

Add missing services from services.json to mappings (#190)

This commit is contained in:
Will 2025-02-25 10:07:25 -08:00 committed by GitHub
parent 8978b9bc73
commit 37b0df5c36
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -24,8 +24,8 @@ var regexMap = []RegexMapping{
}, },
{ {
// Reddit // Reddit
Pattern: regexp.MustCompile(`reddit\.com|libreddit|redlib`), Pattern: regexp.MustCompile(`reddit\.com|libreddit|redlib|teddit`),
Targets: []string{"libreddit", "redlib"}, Targets: []string{"libreddit", "redlib", "teddit"},
}, },
{ {
// Google Search // Google Search
@ -59,8 +59,8 @@ var regexMap = []RegexMapping{
}, },
{ {
// Google Translate // Google Translate
Pattern: regexp.MustCompile(`translate\.google\.com|lingva`), Pattern: regexp.MustCompile(`translate\.google\.com|lingva|simplytranslate`),
Targets: []string{"lingva"}, Targets: []string{"lingva", "simplytranslate"},
}, },
{ {
// TikTok // TikTok
@ -92,6 +92,11 @@ var regexMap = []RegexMapping{
Pattern: regexp.MustCompile(`stackoverflow\.com|anonymousoverflow`), Pattern: regexp.MustCompile(`stackoverflow\.com|anonymousoverflow`),
Targets: []string{"anonymousoverflow"}, Targets: []string{"anonymousoverflow"},
}, },
{
// Genius
Pattern: regexp.MustCompile(`genius\.com|dumb`),
Targets: []string{"dumb"},
},
} }
func MatchRequest(service string) (string, error) { func MatchRequest(service string) (string, error) {