From ba5add94fbb2474c6d689954e34b0053a815698b Mon Sep 17 00:00:00 2001 From: Michael Welter Date: Thu, 7 May 2020 11:06:45 -0500 Subject: [PATCH] Normalize spaces to tabs. Signed-off-by: Michael Welter --- ItemRack/ItemRack.lua | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/ItemRack/ItemRack.lua b/ItemRack/ItemRack.lua index 5162d68..2dd6081 100644 --- a/ItemRack/ItemRack.lua +++ b/ItemRack/ItemRack.lua @@ -377,14 +377,14 @@ function ItemRack.InitCore() -- pattern splitter by Maldivia http://forums.worldofwarcraft.com/thread.html?topicId=6441208576 local function split(str, t) - local start, stop, single, plural = str:find("\1244(.-):(.-);") - if start then - split(str:sub(1, start - 1) .. single .. str:sub(stop + 1), t) - split(str:sub(1, start - 1) .. plural .. str:sub(stop + 1), t) - else - tinsert(t, (str:gsub("%%d","%%d+"))) - end - return t + local start, stop, single, plural = str:find("\1244(.-):(.-);") + if start then + split(str:sub(1, start - 1) .. single .. str:sub(stop + 1), t) + split(str:sub(1, start - 1) .. plural .. str:sub(stop + 1), t) + else + tinsert(t, (str:gsub("%%d","%%d+"))) + end + return t end ItemRack.CHARGES_PATTERNS = {} split(ITEM_SPELL_CHARGES,ItemRack.CHARGES_PATTERNS)