Skip to content

Commit 602096f

Browse files
committed
Remove special escape clause for module attribute
1 parent bf77434 commit 602096f

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)