Anonymous user
Module:String2: Difference between revisions
From the Croc Wiki, the Croc encyclopedia
Jump to navigationJump to search
don't trim the separator
(debug) |
(don't trim the separator) |
||
Line 76:
p.findlast = function(frame)
local s = mw.text.trim( frame.args[1] or "" )
local sep =
local pattern = ".*" .. sep .. "(.*)"
a, b, last = s:find(pattern)
if a then
|