@@ -16,12 +16,13 @@ func isWhitelisted(source string) bool {
16
16
}
17
17
18
18
var sourceWhitelistRegexps = []* regexp.Regexp {
19
- regexp .MustCompile (`^[\w-]*.allizom.org$` ),
20
- regexp .MustCompile (`^www.google(.com?)?.\w+$` ),
21
- regexp .MustCompile (`^\w+.google.com$` ),
22
- regexp .MustCompile (`^\w+.search.yahoo.com$` ),
23
- regexp .MustCompile (`^\w+.facebook.com$` ),
24
- regexp .MustCompile (`^[\w-]+.wikipedia.org$` ),
19
+ regexp .MustCompile (`^[\w-]*\.allizom\.org$` ),
20
+ regexp .MustCompile (`^www\.google(\.com?)?\.\w+$` ),
21
+ regexp .MustCompile (`^\w+\.google\.com$` ),
22
+ regexp .MustCompile (`^\w+\.search\.yahoo\.com$` ),
23
+ regexp .MustCompile (`^\w+\.facebook\.com$` ),
24
+ regexp .MustCompile (`^[\w-]+\.wikipedia\.org$` ),
25
+ regexp .MustCompile (`^(\w+\.)*firefox\.com$` ),
25
26
}
26
27
27
28
var sourceWhitelist = map [string ]bool {
@@ -38,9 +39,7 @@ var sourceWhitelist = map[string]bool{
38
39
"yahoo" : true ,
39
40
"yandex" : true ,
40
41
41
- "firefox-com" : true ,
42
- "firefox.com" : true ,
43
- "www.firefox.com" : true ,
42
+ "firefox-com" : true ,
44
43
45
44
"getfirefox-com" : true ,
46
45
"getfirefox.com" : true ,
@@ -99,7 +98,6 @@ var sourceWhitelist = map[string]bool{
99
98
"gr.search.yahoo.com" : true ,
100
99
"hacks.mozilla.org" : true ,
101
100
"hangouts.google.com" : true ,
102
- "hello.firefox.com" : true ,
103
101
"help.ea.com" : true ,
104
102
"help.mail.ru" : true ,
105
103
"hk.messenger.yahoo.com" : true ,
@@ -180,7 +178,6 @@ var sourceWhitelist = map[string]bool{
180
178
"talkgadget.google.com" : true ,
181
179
"tanks.mail.ru" : true ,
182
180
"taobao.com" : true ,
183
- "testpilot.firefox.com" : true ,
184
181
"th.search.yahoo.com" : true ,
185
182
"thunderbird.mozilla.cz" : true ,
186
183
"toshiba.com" : true ,
0 commit comments