Module:Fallback: Difference between revisions

Content added Content deleted
mNo edit summary
mNo edit summary
Line 35: Line 35:
if msg then
if msg then
-- Trim the assigned message value before testing it.
-- Trim the assigned message value before testing it.
msg = string.gsub(msg, '^%s*(.-)%s*$')
msg = mw.ustring:gsub(msg, '^%s*(.-)%s*$')
if msg ~= '' then
if msg ~= '' then
if code == 'message' then
if code == 'message' then