a small fix for url regex, the url can be '//blah.com' as well . added some url test because of that.