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

מאין תקציר עריכה
בדיקה שחזור לגרסה 16745958 מתאריך 16:45, 6 באפריל 2015 מאת IKhitron
שורה 521: שורה 521:
if not repval then return '' end
if not repval then return '' end
return string.rep( strval, repval )
return string.rep( strval, repval )
end
str.join = function(frame)
local res = {}
local sep = ', '
for k,v in pairs(frame.args) do
if k=='sep' then
sep = v
else
if #v>0 then -- avoid empty string
table.insert(res, v)
end
end
end
return table.concat( res, sep)
end
end


return str
return str