Make url validation more flexible.
Merge pull request #7 from garylai1990/master

Make url validation more flexible.