Skip to content

Commit

Permalink
Normalize spaces to tabs.
Browse files Browse the repository at this point in the history
Signed-off-by: Michael Welter <[email protected]>
  • Loading branch information
mikinho committed May 7, 2020
1 parent 9ece293 commit ba5add9
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions ItemRack/ItemRack.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit ba5add9

Please sign in to comment.