Skip to content

Commit

Permalink
fix improper capture pattern
Browse files Browse the repository at this point in the history
  • Loading branch information
Goldpaw committed Nov 14, 2023
1 parent 2f27d39 commit 23fe529
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion ChatCleaner/Components/Money.lua
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,11 @@ end })

-- Remove large number formatting
local simplifyNumbers = function(message)
return string_gsub(message, "(%d)%"..G.LARGE_NUMBER_SEPERATOR.."(%d)", "%1%2")
if (G.LARGE_NUMBER_SEPERATOR and G.LARGE_NUMBER_SEPERATOR ~= "") then
return string_gsub(message or "", "(%d)%"..G.LARGE_NUMBER_SEPERATOR.."(%d)", "%1%2")
else
return message or ""
end
end

-- Add pretty spacing to large numbers
Expand Down

0 comments on commit 23fe529

Please sign in to comment.