We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ad524f5 commit 32ed2c3Copy full SHA for 32ed2c3
lib/elixir/lib/kernel.ex
@@ -3815,13 +3815,7 @@ defmodule Kernel do
3815
do_at_escape(name, doc)
3816
3817
%{__struct__: Regex, source: source, opts: opts} = regex ->
3818
- # TODO: Remove this in Elixir v2.0
3819
- IO.warn(
3820
- "storing and reading regexes from module attributes is deprecated, " <>
3821
- "inline the regex inside the function definition instead",
3822
- env
3823
- )
3824
-
+ # TODO: Automatically deal with exported regexes
3825
case :erlang.system_info(:otp_release) < [?2, ?8] do
3826
true -> do_at_escape(name, regex)
3827
false -> quote(do: Regex.compile!(unquote(source), unquote(opts)))
0 commit comments