Module:String: Difference between revisions

Nothing to hide, but nothing to show you either.
Jump to navigation Jump to search
Content added Content deleted
(test)
 
(fix)
Line 1: Line 1:
local p = {}
local p = {}


function p.length( str )
function p.length( frame )
local arg1 = frame.args[1]
return string.len( str )
return string.len( arg1 )
end
end



Revision as of 10:48, 22 August 2012

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

local p = {}

function p.length( frame )
    local arg1 = frame.args[1]
    return string.len( arg1 )
end    

return p