Modul:Detect singular: Unterschied zwischen den Versionen
allow tightly packed comma-separated lists
(get rid of debugging) |
(allow tightly packed comma-separated lists) |
||
Zeile 37: | Zeile 37: | ||
-- replace all wikilinks with fixed string | -- replace all wikilinks with fixed string | ||
s = mw.ustring.gsub(s,'%b[]','WIKILINK') | s = mw.ustring.gsub(s,'%b[]','WIKILINK') | ||
local hasComma = checkComma and mw.ustring.find(s, '[%a%s],%s') | local hasComma = checkComma and mw.ustring.find(s, '[%a%s],[%a%s]') | ||
local hasAnd = mw.ustring.find(s,'[,%s]and%s') | local hasAnd = mw.ustring.find(s,'[,%s]and%s') | ||
local hasBreak = mw.ustring.find(s,'<%s*br') | local hasBreak = mw.ustring.find(s,'<%s*br') |