Modul:Detect singular: Unterschied zwischen den Versionen

more accepting of commas
(accept link argument)
(more accepting of commas)
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, '[%a%s],[%a%s]')  
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