diff --git a/lib/aprsme_web/live/api_docs_live.ex b/lib/aprsme_web/live/api_docs_live.ex
index b5c8793..f4ef13b 100644
--- a/lib/aprsme_web/live/api_docs_live.ex
+++ b/lib/aprsme_web/live/api_docs_live.ex
@@ -209,29 +209,29 @@ defmodule AprsmeWeb.ApiDocsLive do
defp sanitize_raw_packet(raw_packet), do: raw_packet
defp highlight_json(text) do
- highlighted =
- Regex.replace(
- ~r/(?
- ~s(#{key})
+ Regex.replace(
+ ~r/(?
+ ~s(#{key})
- _, "", str, "", "", "" ->
- ~s(#{str})
+ _, "", str, "", "", "", "" ->
+ ~s(#{str})
- _, "", "", bool, "", "" ->
- ~s(#{bool})
+ _, "", "", bool, "", "", "" ->
+ ~s(#{bool})
- _, "", "", "", null, "" ->
- ~s(#{null})
+ _, "", "", "", null, "", "" ->
+ ~s(#{null})
- _, "", "", "", "", num ->
- ~s(#{num})
- end
- )
+ _, "", "", "", "", num, "" ->
+ ~s(#{num})
- Regex.replace(~r/[{}[\]\:,]/, highlighted, ~s(\\0))
+ _, "", "", "", "", "", punc ->
+ ~s(#{punc})
+ end
+ )
end
defp callsign_success_json, do: ~s|{