From 5eb1f000ea0979fc3da3406259a8685fec54d5d9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jos=C3=A9=20Valim?= Date: Sat, 8 Jul 2023 22:38:45 +0200 Subject: [PATCH] Avoid interpolation --- lib/ex_doc/utils.ex | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/lib/ex_doc/utils.ex b/lib/ex_doc/utils.ex index 9840b730b..a0bc8cdc1 100644 --- a/lib/ex_doc/utils.ex +++ b/lib/ex_doc/utils.ex @@ -151,12 +151,14 @@ defmodule ExDoc.Utils do do: to_json_string(rest, <>) defp to_json_string(<>, acc) when x <= 0x000F, - do: to_json_string(rest, <>) + do: to_json_string(rest, <>) defp to_json_string(<>, acc) when x <= 0x001F, - do: to_json_string(rest, <>) + do: to_json_string(rest, <>) + + defp to_json_string(<>, acc), + do: to_json_string(rest, <>) - defp to_json_string(<>, acc), do: to_json_string(rest, <>) defp to_json_string(<<>>, acc), do: <> @doc """