Module:String

From Wavu Wiki, the 🌊 wavy Tekken wiki

Documentation for this module may be created at Module:String/doc

local p = {};

p.lc = function(frame)
	local s = frame.args[1]
	return s:lower()
end

p.match = function(frame)
	local s = frame.args[1]
	return s:match(frame.args[2], frame.args[3], frame.args[4])
end

p.rep = function(frame)
	local s = frame.args[1]
	local n = frame.args[2]
	return s:rep(n)
end

p.trim = function(frame)
	local s = frame.args[1]
	return mw.text.trim(s)
end

return p