Skip to content

Commit

Permalink
fix: Regex.regex? is deprecated warning
Browse files Browse the repository at this point in the history
  • Loading branch information
fishtreesugar committed Dec 12, 2023
1 parent b2b8532 commit 43c565f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/validation.ex
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ defmodule Strukt.Validation do

:format ->
cond do
Regex.regex?(data_or_opts) ->
is_struct(data_or_opts, Regex) ->
quote do
Ecto.Changeset.validate_format(
unquote(field),
Expand Down

0 comments on commit 43c565f

Please sign in to comment.