@@ -321,7 +321,7 @@ var domainFilterTests = []domainFilterTest{
321
321
322
322
var regexDomainFilterTests = []regexDomainFilterTest {
323
323
{
324
- regexp .MustCompile (" \\ .org$" ),
324
+ regexp .MustCompile (`\ .org$` ),
325
325
regexp .MustCompile ("" ),
326
326
[]string {"foo.org" , "bar.org" , "foo.bar.org" },
327
327
true ,
@@ -330,7 +330,7 @@ var regexDomainFilterTests = []regexDomainFilterTest{
330
330
},
331
331
},
332
332
{
333
- regexp .MustCompile (" \\ .bar\\ .org$" ),
333
+ regexp .MustCompile (`\ .bar\.org$` ),
334
334
regexp .MustCompile ("" ),
335
335
[]string {"foo.org" , "bar.org" , "example.com" },
336
336
false ,
@@ -339,7 +339,7 @@ var regexDomainFilterTests = []regexDomainFilterTest{
339
339
},
340
340
},
341
341
{
342
- regexp .MustCompile (" (?:foo|bar)\\ .org$" ),
342
+ regexp .MustCompile (` (?:foo|bar)\.org$` ),
343
343
regexp .MustCompile ("" ),
344
344
[]string {"foo.org" , "bar.org" , "example.foo.org" , "example.bar.org" , "a.example.foo.org" , "a.example.bar.org" },
345
345
true ,
@@ -348,18 +348,18 @@ var regexDomainFilterTests = []regexDomainFilterTest{
348
348
},
349
349
},
350
350
{
351
- regexp .MustCompile (" (?:foo|bar)\\ .org$" ),
352
- regexp .MustCompile (" ^example\\ .(?:foo|bar)\\ .org$" ),
351
+ regexp .MustCompile (` (?:foo|bar)\.org$` ),
352
+ regexp .MustCompile (` ^example\.(?:foo|bar)\.org$` ),
353
353
[]string {"foo.org" , "bar.org" , "a.example.foo.org" , "a.example.bar.org" },
354
354
true ,
355
355
map [string ]string {
356
- "regexInclude" : " (?:foo|bar)\\ .org$" ,
357
- "regexExclude" : " ^example\\ .(?:foo|bar)\\ .org$" ,
356
+ "regexInclude" : ` (?:foo|bar)\.org$` ,
357
+ "regexExclude" : ` ^example\.(?:foo|bar)\.org$` ,
358
358
},
359
359
},
360
360
{
361
- regexp .MustCompile (" (?:foo|bar)\\ .org$" ),
362
- regexp .MustCompile (" ^example\\ .(?:foo|bar)\\ .org$" ),
361
+ regexp .MustCompile (` (?:foo|bar)\.org$` ),
362
+ regexp .MustCompile (` ^example\.(?:foo|bar)\.org$` ),
363
363
[]string {"example.foo.org" , "example.bar.org" },
364
364
false ,
365
365
map [string ]string {
@@ -368,8 +368,8 @@ var regexDomainFilterTests = []regexDomainFilterTest{
368
368
},
369
369
},
370
370
{
371
- regexp .MustCompile (" (?:foo|bar)\\ .org$" ),
372
- regexp .MustCompile (" ^example\\ .(?:foo|bar)\\ .org$" ),
371
+ regexp .MustCompile (` (?:foo|bar)\.org$` ),
372
+ regexp .MustCompile (` ^example\.(?:foo|bar)\.org$` ),
373
373
[]string {"foo.org" , "bar.org" , "a.example.foo.org" , "a.example.bar.org" },
374
374
true ,
375
375
map [string ]string {
0 commit comments