Module:siwa-noun: Difference between revisions
No edit summary |
No edit summary |
||
| Line 8: | Line 8: | ||
local find = mw.ustring.find | local find = mw.ustring.find | ||
local gmatch = mw.ustring.gmatch | local gmatch = mw.ustring.gmatch | ||
local | local rsubn = mw.ustring.gsub | ||
local u = mw.ustring.char | local u = mw.ustring.char | ||
local split = mw.text.split | local split = mw.text.split | ||
| Line 31: | Line 31: | ||
} | } | ||
-- version of | -- version of rsubn() that discards all but the first return value | ||
local function | local function rsub(term, foo, bar, n) | ||
local retval = | local retval = rsubn(term, foo, bar, n) | ||
return retval | return retval | ||
end | end | ||