Skip to content

Commit

Permalink
BT2: Fix tooltip parsing for negative numbers
Browse files Browse the repository at this point in the history
Fixes: #4587
  • Loading branch information
InfusOnWoW committed Sep 6, 2023
1 parent 0c7b9bc commit 60afdfc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion WeakAuras/WeakAuras.lua
Original file line number Diff line number Diff line change
Expand Up @@ -3896,7 +3896,7 @@ function Private.ParseTooltipText(tooltipText)
local debuffType = "none";
local tooltipSize = {};
if(tooltipText) then
for t in tooltipText:gmatch("(%d[%d%.,]*)") do
for t in tooltipText:gmatch("(-?%d[%d%.,]*)") do
if (LARGE_NUMBER_SEPERATOR == ",") then
t = t:gsub(",", "");
else
Expand Down

0 comments on commit 60afdfc

Please sign in to comment.