יחידה:String: הבדלים בין גרסאות בדף

rep
מ תקלדה
שורה 516: שורה 516:


str.rep = function( frame )
str.rep = function( frame )
local strval, repval = frame.args[1] or '', tonumber( frames.args[2] )
local strval, repval = frame.args[1] or '', tonumber( frame.args[2] )
if not repval then return '' end
if not repval then return '' end
return string.rep( strval, repval )
return string.rep( strval, repval )