changed hex_metadata.config
 
@@ -24,4 +24,4 @@
24
24
{<<"links">>,[{<<"github">>,<<"https://github.com/CargoSense/vex">>}]}.
25
25
{<<"name">>,<<"vex">>}.
26
26
{<<"requirements">>,[]}.
27
- {<<"version">>,<<"0.9.0">>}.
27
+ {<<"version">>,<<"0.9.1">>}.
changed lib/vex/validators/format.ex
 
@@ -53,7 +53,7 @@ defmodule Vex.Validators.Format do
53
53
end
54
54
55
55
def validate(value, format) do
56
- if Regex.regex?(format), do: validate(value, with: format)
56
+ if is_struct(format, Regex), do: validate(value, with: format)
57
57
end
58
58
59
59
defp result(true, _), do: :ok
changed mix.exs
 
@@ -4,7 +4,7 @@ defmodule Vex.Mixfile do
4
4
def project do
5
5
[
6
6
app: :vex,
7
- version: "0.9.0",
7
+ version: "0.9.1",
8
8
elixir: "~> 1.6",
9
9
deps: deps(),
10
10
consolidate_protocols: Mix.env() != :test,