fix(pretty_path): properly escape % characters

This commit is contained in:
Folke Lemaitre committed 2024-05-12 22:08:13 +02:00
1 parent a0afe8fef9
commit e89653f410
1 file changed
+1
+1
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