aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--CHANGELOG.md4
-rw-r--r--src/gleam_stdlib.erl1
2 files changed, 3 insertions, 2 deletions
diff --git a/CHANGELOG.md b/CHANGELOG.md
index b1d2c51..fbf7a42 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -13,8 +13,8 @@
- The `dict` module gains the `each` function.
- The `list` module gains the `wrap` function.
- The `iterator` module gains the `find_map` function.
-- Fixed `string.inspect` not formatting `\f` (form feed), `\b` (backspace),
- and `\v` (vertical tab) control characters correctly on Erlang.
+- Fixed `string.inspect` not formatting the `\f` (form feed), `\b` (backspace),
+ `\e` (escape), and `\v` (vertical tab) control characters correctly on Erlang.
- `dynamic.unsafe_coerce` function has been deprecated.
- Fixed `bit_array` slices of slices sometimes being incorrect on JavaScript.
- The `dict` module gains the `combine` function.
diff --git a/src/gleam_stdlib.erl b/src/gleam_stdlib.erl
index 3d9c5ed..cab299f 100644
--- a/src/gleam_stdlib.erl
+++ b/src/gleam_stdlib.erl
@@ -500,6 +500,7 @@ inspect_maybe_utf8_string(Binary, Acc) ->
$\f -> <<$\\, $f>>;
$\b -> <<$\\, $b>>;
$\v -> <<$\\, $v>>;
+ $\e -> <<$\\, $e>>;
Other -> <<Other/utf8>>
end,
inspect_maybe_utf8_string(Rest, <<Acc/binary, Escaped/binary>>);