Cache gsub

This commit is contained in:
Logan Payton
2018-02-20 13:08:56 -05:00
parent 844ed68db9
commit dc8e8308d8
+2 -1
View File
@@ -6,6 +6,7 @@ local M = E:GetModule("Misc");
local max = math.max
local tinsert = table.insert
local unpack, pairs = unpack, pairs
local gsub = string.gsub
--WoW API / Variables
local CloseLoot = CloseLoot
local CursorOnUpdate = CursorOnUpdate
@@ -207,7 +208,7 @@ function M:LOOT_OPENED(_, autoLoot)
local color = ITEM_QUALITY_COLORS[quality]
if(LootSlotIsCoin(i)) then
item = string.gsub(item, "\n", ", ")
item = gsub(item, "\n", ", ")
end
if quantity and (quantity > 1) then