mirror of
https://github.com/Bluewhale1337/ElvUIModernized.git
synced 2026-07-27 16:34:45 +00:00
temp fix gmatch in AceConfigCmd-3.0.lua (ElvUI_Config not loading)
https://github.com/ElvUI-Vanilla/ElvUI/commit/11ea55b1a5c54883ed4f42bdbe110d05ba26ffc8#diff-947b626a59f99755e258be6d7a6463b3R564 @Loaal I could not load ElvUI_Config because I kept getting "too many upvalues (limit=32)". Maybe you have better solution?
This commit is contained in:
@@ -29,7 +29,7 @@ local AceConsoleName = "AceConsole-3.0"
|
|||||||
|
|
||||||
-- Lua APIs
|
-- Lua APIs
|
||||||
local strsub, strsplit, strlower, strmatch, strtrim = string.sub, string.split, string.lower, string.match, string.trim
|
local strsub, strsplit, strlower, strmatch, strtrim = string.sub, string.split, string.lower, string.match, string.trim
|
||||||
local strgsub, strupper, strfind, strlen, strbyte, strgmatch = string.gsub, string.upper, string.find, string.len, string.byte, string.gmatch
|
local strgsub, strupper, strfind, strlen, strbyte = string.gsub, string.upper, string.find, string.len, string.byte
|
||||||
local format, tonumber, tostring = string.format, tonumber, tostring
|
local format, tonumber, tostring = string.format, tonumber, tostring
|
||||||
local tsort, tinsert, getn = table.sort, table.insert, table.getn
|
local tsort, tinsert, getn = table.sort, table.insert, table.getn
|
||||||
local fmod = math.fmod
|
local fmod = math.fmod
|
||||||
@@ -561,7 +561,7 @@ local function handle(info, inputpos, tab, depth, retfalse)
|
|||||||
--parse for =on =off =default in the process
|
--parse for =on =off =default in the process
|
||||||
--table will be key = true for options that should toggle, key = [on|off|default] for options to be set
|
--table will be key = true for options that should toggle, key = [on|off|default] for options to be set
|
||||||
local sels = {}
|
local sels = {}
|
||||||
for v in strgmatch(str, "[^ ]+") do
|
for v in string.gmatch(str, "[^ ]+") do
|
||||||
--parse option=on etc
|
--parse option=on etc
|
||||||
local _, _, opt, val = strfind(v, '(.+)=(.+)')
|
local _, _, opt, val = strfind(v, '(.+)=(.+)')
|
||||||
--get option if toggling
|
--get option if toggling
|
||||||
|
|||||||
Reference in New Issue
Block a user