(x string, recInclude string)
| 1318 | } |
| 1319 | |
| 1320 | func checkRecInclude(x string, recInclude string) bool { |
| 1321 | for _, inc := range strings.Split(recInclude, " ") { |
| 1322 | // remove spaces and skip if someone used multiple spaces instead of one |
| 1323 | if inc == "" { |
| 1324 | continue |
| 1325 | } |
| 1326 | if strings.Contains(x, inc) { |
| 1327 | return true |
| 1328 | } |
| 1329 | } |
| 1330 | return false |
| 1331 | } |
| 1332 | |
| 1333 | func addUrl(urls []string, url string, added map[string]bool, excluded map[string]bool) []string { |
| 1334 | url = addDomain(url, Config.Website.Url.Hostname()) |