function parseDomains (input, options) {
  var domains = input.split('|')
  var matchDomains = []
  var skipDomains = []
  for (var i = 0; i < domains.length; i++) {
    if (domains[i][0] === '~') {
      skipDomains.push(domains[i].substring(1))
    } else {
      matchDomains.push(domains[i])
    }
  }
  if (matchDomains.length !== 0) {
    options.domains = matchDomains
  }
  if (skipDomains.length !== 0) {
    options.skipDomains = skipDomains
  }
}
Parses the domain string and fills in options.