Content deleted Content added
No edit summary |
No edit summary |
||
Line 1:
--- STABLE: 16-11-2021 20:30
-- todo: sep = len 1 max
-- not %
require('Module:No globals')
Line 8:
local str = require('Module:String')
local yesno = require('Module:Yesno')
local defaultSep = ','
local iMaxWords = 16
Line 321 ⟶ 320:
-- set wordt separator
local function setSep(sSep)
local msg = ''
-- todo what with {{!}}
local newSep = defaultSep
▲ if sSep == nil or sSep == '' then
newSep = sSep
sSep = decodeUnicode(sSep
if string.match(sSep, '[%s%w%d]') ~= nil then -- not ok ok
msg = 'Irregular characters in sep: ' .. sSep
Line 353 ⟶ 349:
local function parseArgs(origArgs)
local newArgs = {}
newArgs['sep'] = setSep(origArgs['sep'] or '') --
newArgs['source'] = decodeUnicode(origArgs['s'] or origArgs['source'] or '')
newArgs['andString'] = decodeUnicode(concatAndLists(
|