Content deleted Content added
No edit summary |
No edit summary |
||
Line 83:
sWordlist = tArgs.sep .. sWordlist .. tArgs.sep
local eSep
eSep = escape_word(tArgs.sep
local patstring = '%f[^' .. eSep .. '][^' .. eSep .. ']+%f[' .. eSep .. ']'
while hitCount <= iMaxWords do
hitCount = hitCount + 1
hitWord = str._match(sWordlist, patstring, 1, hitCount, false,
hitWord = mw.text.trim(hitWord)
if hitWord ==
-- no more words found in the string
break
|