Skip to content

Commit 072ce93

Browse files
committed
Fix missing gsub argument
1 parent 50a8eb5 commit 072ce93

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/Classes/CompareBuySimilar.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -432,7 +432,7 @@ function M.openPopup(item, slotName, primaryBuild)
432432
-- Truncate long mod text to fit
433433
--- @type string
434434
local displayText = entry.formatted
435-
local colorCodeLength = displayText:match("(%^x%x%x%x%x%x%x)") or displayText:gsub("(%^%x)") or ""
435+
local colorCodeLength = displayText:match("(%^x%x%x%x%x%x%x)") or displayText:gsub("(%^%x)", "") or ""
436436
if not canSearch then
437437
-- strip color codes and replace with gray
438438
displayText = "^8" .. displayText:gsub("%^x%x%x%x%x%x%x", ""):gsub("%^%x", "")

0 commit comments

Comments
 (0)