FIX: Allow multiple hyphens in host (PR #10078)

Currently having multiple hyphens (-) in the host, throws an “invalid” error. For example, currently deploy-preview-1--example.netlify.app, would not be considered valid.

GitHub

Hi there! Thanks for this PR. Could you add a unit test for this functionality please?

@eviltrout I have added the unit test. Thanks a lot for reviewing. If I should add anything else, let me know :slight_smile:

Thank you!