Skip to content

Commit

Permalink
fix(format): run formatter
Browse files Browse the repository at this point in the history
  • Loading branch information
akinsey committed Nov 22, 2024
1 parent 19445ab commit bf28bb0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/epochtalk_server_web/json/post_json.ex
Original file line number Diff line number Diff line change
Expand Up @@ -449,7 +449,7 @@ defmodule EpochtalkServerWeb.Controllers.PostJSON do

# add space to end if the last character is a backslash (fix for parser)
body_len = String.length(body)
last_char = String.slice(body, body_len - 1..body_len)
last_char = String.slice(body, (body_len - 1)..body_len)
body = if last_char == "\\", do: body <> " ", else: body

parsed_body = EpochtalkServer.BBCParser.parse(body)
Expand Down

0 comments on commit bf28bb0

Please sign in to comment.