Skip to content

Commit 0f170f9

Browse files
authored
Update lib/elixir/lib/kernel.ex
1 parent 5dd1f1b commit 0f170f9

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

lib/elixir/lib/kernel.ex

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3735,10 +3735,9 @@ defmodule Kernel do
37353735
env
37363736
)
37373737

3738-
if :erlang.system_info(:otp_release) < [?2, ?8] do
3739-
do_at_escape(name, regex)
3740-
else
3741-
quote(do: Regex.compile!(unquote(source), unquote(opts)))
3738+
case :erlang.system_info(:otp_release) < [?2, ?8] do
3739+
true -> do_at_escape(name, regex)
3740+
false -> quote(do: Regex.compile!(unquote(source), unquote(opts)))
37423741
end
37433742

37443743
value ->

0 commit comments

Comments
 (0)