Fixed triggering so all tests pass. Includes subdomain parsing in regex.