ecto_fields v0.0.2 EctoFields.URL
Summary
Functions
Validate that the given value is a valid fully qualified url
## Examples
iex> EctoFields.URL.cast(“http://example.com”) “http://example.com”
iex> EctoFields.URL.cast(“https://example.com”) “https://example.com”
iex> EctoFields.URL.cast(“http://example.com/test/foo.html?search=1&page=two#header”) “http://example.com/test/foo.html?search=1&page=two#header”
iex> EctoFields.URL.cast(“myblog.html”) :error
iex> EctoFields.URL.cast(“http://example.comlogirst”) :error