Module:Array

From Moegirlpedia
Revision as of 16:09, 25 March 2022 by LiaMinina (talk | contribs) (Created page with "local p = {} function p.parse(string) local ret = mw.text.split(string:gsub('@@','\1'),'@') for i, v in pairs(ret) do ret[i] = v:gsub('\1','@') end return ret end retu...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search
Template-info.svg Module Documentation  [Create] [Refresh]
local p = {}

function p.parse(string)
	local ret = mw.text.split(string:gsub('@@','\1'),'@')
	for i, v in pairs(ret) do
		ret[i] = v:gsub('\1','@')
	end
	return ret
end

return p