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:
parent
8978b9bc73
commit
37b0df5c36
1 changed files with 9 additions and 4 deletions
|
@ -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) {
|
||||||
|
|
Loading…
Add table
Reference in a new issue