Skip to content

Commit

Permalink
chore: add back in function that should not have been removed
Browse files Browse the repository at this point in the history
  • Loading branch information
zachdaniel committed Jan 27, 2025
1 parent 7f867e5 commit 16f080f
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions lib/ash/type/string.ex
Original file line number Diff line number Diff line change
Expand Up @@ -282,4 +282,11 @@ defmodule Ash.Type.String do
def dump_to_native(value, _) do
Ecto.Type.dump(:string, value)
end

@doc false
def match(%Regex{} = regex), do: {:ok, regex}

def match(_) do
{:error, "Must provide a regex to match, e.g ~r/foobar/"}
end
end

0 comments on commit 16f080f

Please sign in to comment.