Module:Str find word: Difference between revisions

Content deleted Content added
No edit summary
No edit summary
Line 328:
newSep = sSep
sSep = decodeUnicode(sSep)
if string.match(sSep, '[%s%w%d]') ~= nil then -- not ok ok
msg = 'Irregular characters in sep: ' .. sSep
newSep = defaultSep
end
newSep = string.sub(sSep, 1, 1)
if sSepnewSep == '' then --- ???
newSep = defaultSep
end
return newSep
end