add check for valid url patterns of known hosting platforms

To avoid adding `git@github.com:` and `http://github.com/` urls.