Skip to content

Commit

Permalink
fix(sidebar): escape square brackets (yetone#591)
Browse files Browse the repository at this point in the history
  • Loading branch information
ddillert authored Sep 15, 2024
1 parent 6604d03 commit f9520c4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lua/avante/sidebar.lua
Original file line number Diff line number Diff line change
Expand Up @@ -1014,7 +1014,7 @@ local function get_chat_record_prefix(timestamp, provider, model, request)
.. "/"
.. model
.. "\n\n> "
.. request:gsub("\n", "\n> ")
.. request:gsub("\n", "\n> "):gsub("([%w-_]+)%b[]", "`%0`")
.. "\n\n"
end

Expand Down

0 comments on commit f9520c4

Please sign in to comment.