Module:rad-stem/templates: Difference between revisions

Jump to navigation Jump to search
Fixed issue with * interfering with ending regex
No edit summary
(Fixed issue with * interfering with ending regex)
Line 367: Line 367:
local function get_forms(case, base, adj_base, adj_ending, nolink)
local function get_forms(case, base, adj_base, adj_ending, nolink)
if mw.ustring.find(base, "%*") then
base = "*" .. mw.ustring.gsub(base, "%*", "")
end
local article = ""
local article = ""
if adj_base then
if adj_base then
Line 966: Line 970:
local function get_forms(stem, ending, regex1, regex2, regex3, regex4, regex5, regex6)
local function get_forms(stem, ending, regex1, regex2, regex3, regex4, regex5, regex6)
if mw.ustring.find(stem, "%*") then
stem = "*" .. mw.ustring.gsub(stem, "%*", "")
end
local temp = {}
local temp = {}
local post = ""
local post = ""

Navigation menu