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
This commit is contained in:
parent
c948bebd7c
commit
5624e74ae8
1 changed files with 9 additions and 4 deletions
|
@ -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
|
||||
|
@ -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
|
||||
|
@ -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) {
|
||||
|
|
Loading…
Add table
Reference in a new issue