is_url 
Validate a url.
Installation
Add is_url to your list of dependencies in mix.exs
def deps do
[{:is_url, "~> 0.0.1"}]
endEnsure is_url is started before your application
def application do
[applications: [:is_url]]
endUsage
IsUrl.validate("http://johnotander.com") # => true
IsUrl.validate("ftp://www.foo.bar") # => true
IsUrl.validate("foo.bar") # => falseDevelopment
mix testLicense
MIT
Contributing
- Fork it
-
Create your feature branch (
git checkout -b my-new-feature) -
Commit your changes (
git commit -am 'Add some feature') -
Push to the branch (
git push origin my-new-feature) - Create new Pull Request
Crafted with <3 by John Otander (@4lpine).