Skip to content

Commit

Permalink
Add missing services from services.json to mappings
Browse files Browse the repository at this point in the history
  • Loading branch information
wilt00 committed Feb 17, 2025
1 parent c948beb commit 5624e74
Showing 1 changed file with 9 additions and 4 deletions.
13 changes: 9 additions & 4 deletions services/mappings.go
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,8 @@ var regexMap = []RegexMapping{
},
{
// Reddit
Pattern: regexp.MustCompile(`reddit\.com|libreddit|redlib`),
Targets: []string{"libreddit", "redlib"},
Pattern: regexp.MustCompile(`reddit\.com|libreddit|redlib|teddit`),
Targets: []string{"libreddit", "redlib", "teddit"},
},
{
// Google Search
Expand Down Expand Up @@ -59,8 +59,8 @@ var regexMap = []RegexMapping{
},
{
// Google Translate
Pattern: regexp.MustCompile(`translate\.google\.com|lingva`),
Targets: []string{"lingva"},
Pattern: regexp.MustCompile(`translate\.google\.com|lingva|simplytranslate`),
Targets: []string{"lingva", "simplytranslate"},
},
{
// TikTok
Expand Down Expand Up @@ -92,6 +92,11 @@ var regexMap = []RegexMapping{
Pattern: regexp.MustCompile(`stackoverflow\.com|anonymousoverflow`),
Targets: []string{"anonymousoverflow"},
},
{
// Genius
Pattern: regexp.MustCompile(`genius\.com|dumb`),
Targets: []string{"dumb"},
},
}

func MatchRequest(service string) (string, error) {
Expand Down

0 comments on commit 5624e74

Please sign in to comment.