Jump to content

Module:String: Difference between revisions

m
fix
m (make sub match current behaviour of {{str sub}})
m (fix)
Line 12: Line 12:
     if arg2 and arg3 then
     if arg2 and arg3 then
         local first = arg2 + 1
         local first = arg2 + 1
         local last  = first + arg3
         local last  = arg2 + arg3
         return string.sub( arg1, first, last )
         return string.sub( arg1, first, last )
     else
     else
Anonymous user
Cookies help us deliver our services. By using our services, you agree to our use of cookies.