Modul:Detect singular: Unterschied zwischen den Versionen

no need for sets
(more accepting of commas)
(no need for sets)
Zeile 49: Zeile 49:
s = mw.ustring.gsub(s,'%b[]','WIKILINK')  
s = mw.ustring.gsub(s,'%b[]','WIKILINK')  
end
end
local hasComma = checkComma and mw.ustring.find(s, '[%D],[%D]')  
local hasComma = checkComma and mw.ustring.find(s, '%D,%D')  
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')
Anonymer Benutzer