Skip to content

Commit aeb2ea1

Browse files
committed
Clarify regexes in OTP 28
1 parent 7b20c28 commit aeb2ea1

File tree

1 file changed

+12
-1
lines changed

1 file changed

+12
-1
lines changed

CHANGELOG.md

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -225,7 +225,18 @@ You may also prefer to write using guards:
225225

226226
## v1.18.4 (2025-05-21)
227227

228-
This release includes initial support for Erlang/OTP 28, for those who want to try it out. In such cases, you may use Elixir v1.18.4 precompiled for Erlang/OTP 27, as it is binary compatible with Erlang/OTP 28.
228+
This release includes initial support for Erlang/OTP 28, for those who want to try it out. In such cases, you may use Elixir v1.18.4 precompiled for Erlang/OTP 27, as it is binary compatible with Erlang/OTP 28. Note, however, that Erlang/OTP 28 no longer allows regexes to be defined in the module body and interpolated into an attribute. If you do this:
229+
230+
```elixir
231+
@some_attribute ~r/foo/
232+
def some_fun, do: @some_attribute
233+
```
234+
235+
You must rewrite it to:
236+
237+
```elixir
238+
def some_fun, do: ~r/foo/
239+
```
229240

230241
### 1. Enhancements
231242

0 commit comments

Comments
 (0)