Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/Modules/Common.lua
Original file line number Diff line number Diff line change
Expand Up @@ -571,7 +571,7 @@ end
function formatNumSep(str)
return string.gsub(str, "(%^?x?%x?%x?%x?%x?%x?%x?-?%d+%.?%d+)", function(m)
local colour = m:match("(^x%x%x%x%x%x%x)") or m:match("(%^%d)") or ""
local str = m:gsub("(^x%x%x%x%x%x%x)", "") or m:gsub("(%^%d)", "")
local str = m:gsub("(^x%x%x%x%x%x%x)", ""):gsub("(%^%d)", "")
if str == "" or (colour == "" and m:match("%^")) then -- return if we have an invalid color code or a completely stripped number.
return m
end
Expand Down