Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings
Open more actions menu

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ValidUrl Build Status Hex pm

Provides the best known regex for validating and extracting URLs.

It builds on amazing work done by Diego Perini and Mathias Bynens.

Installation

The package can be installed as:

  1. Add valid_url to your list of dependencies in mix.exs:
```elixir
def deps do
  [{:valid_url, "~> 0.1.1"}]
end
```
  1. Ensure valid_url is started before your application:
```elixir
def application do
  [applications: [:valid_url]]
end
```

Usage

ValidUrl.validate("https://www.spencercreasey.com") # => true
ValidUrl.validate("ftp://www.example.com") # => true
ValidUrl.validate("www.google.com") # => false

Development

mix test

License

MIT

Contributing

  1. Fork it
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Commit your changes (git commit -am 'Add some feature')
  4. Push to the branch (git push origin my-new-feature)
  5. Create new Pull Request

Releases

Packages

Contributors

Languages

Morty Proxy This is a proxified and sanitized view of the page, visit original site.