fix(pretty_path): properly escape % characters

This commit is contained in:
Folke Lemaitre 2024-05-12 22:08:13 +02:00
parent a0afe8fef9
commit e89653f410
No known key found for this signature in database
GPG key ID: 41F8B1FBACAE2040

View file

@ -46,6 +46,7 @@ end
---@param hl_group? string
---@return string
function M.format(component, text, hl_group)
text = text:gsub("%%", "%%%%")
if not hl_group or hl_group == "" then
return text
end