Skip to content

Commit 14f9002

Browse files
committed
Remove special handling in module attribute
1 parent 871d738 commit 14f9002

File tree

1 file changed

+0
-7
lines changed

1 file changed

+0
-7
lines changed

lib/elixir/lib/kernel.ex

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -3813,13 +3813,6 @@ defmodule Kernel do
38133813
{_, doc} when doc_attr? ->
38143814
do_at_escape(name, doc)
38153815

3816-
%{__struct__: Regex, source: source, opts: opts} = regex ->
3817-
# TODO: Automatically deal with exported regexes
3818-
case :erlang.system_info(:otp_release) < [?2, ?8] do
3819-
true -> do_at_escape(name, regex)
3820-
false -> quote(do: Regex.compile!(unquote(source), unquote(opts)))
3821-
end
3822-
38233816
value ->
38243817
do_at_escape(name, value)
38253818
end

0 commit comments

Comments
 (0)