Fix the domain part regex, closes #329
3.22.2