Module:Str find word: Difference between revisions

Content deleted Content added
No edit summary
No edit summary
Line 310:
local function setSep(sSep)
-- comma-space? / does not matter
if newSepsSep == nil or newSep == '' then return defaultSep end
 
local newSep
sSep = decodeUnicode(newSep or '')
sSep = mw.ustring.gsub(newSep, '%s', '')
Line 319 ⟶ 318:
return defaultSep
end
 
if newSep == nil or newSep == '' then return defaultSep end
return sSep .. 'x'
if newSep ~= sSep then return defaultSep end
return sSep
end