code: def get_search_names(name):
      
      parts = re.split('[-_.]', name)
      if len(parts) == 1:
          return parts
  
      result = set()
      for i in range(len(parts) - 1, 0, -1):
          for s1 in '-_.':
              prefix = s1.join(parts[:i])
              for s2 in '-_.':
                  suffix = s2.join(parts[i:])
                  for s3 in '-_.':
                      result.add(s3.join([prefix, suffix]))
      return list(result)
docs: Return a list of values to search on when we are looking for a package
      with the given name.
  
      This is required to search on both pyramid_debugtoolbar and
      pyramid-debugtoolbar.