We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 819a42d commit 8c7d578Copy full SHA for 8c7d578
src/Modules/Common.lua
@@ -592,7 +592,7 @@ end
592
function formatNumSep(str)
593
return string.gsub(str, "(%^?x?%x?%x?%x?%x?%x?%x?-?%d+%.?%d+)", function(m)
594
local colour = m:match("(^x%x%x%x%x%x%x)") or m:match("(%^%d)") or ""
595
- 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)", "")
596
if str == "" or (colour == "" and m:match("%^")) then -- return if we have an invalid color code or a completely stripped number.
597
return m
598
end
0 commit comments