Module:Str find word: Difference between revisions

Content deleted Content added
No edit summary
No edit summary
Line 81:
-- Step 3: parse comma-delimited words
hitCount = 0
sWordlist = tArgs.sSepsep .. sWordlist .. tArgs.sSepsep
local eSep
eSep = escape_word(tArgs.sSepsep or '&')
table.insert(wordTable, eSep) -- dev
local patstring = '%f[^' .. eSep .. '][^' .. eSep .. ']+%f[' .. eSep .. ']'
Line 288:
-- concat the sYeslist (= all hit words; from 2 tables)
if bANDresult then
sYeslist = sYeslist .. table.concat(tANDhits, tArgs.sSepsep)
end
 
if #tORhits > 0 then
if #tANDhits > 0 then
sYeslist = sYeslist .. tArgs.sSepsep
end
sYeslist = sYeslist .. table.concat(tORhits, tArgs.sSepsep)
end
end