Modul:Detect singular: Unterschied zwischen den Versionen

more than one asterisk in a row should only count for one
(just use balanced bracket (html links will also get mashed out))
(more than one asterisk in a row should only count for one)
Zeile 31: Zeile 31:
local hasAnd = mw.ustring.find(s,'%Aand%A')
local hasAnd = mw.ustring.find(s,'%Aand%A')
local hasBreak = mw.ustring.find(s,'<%s*br')
local hasBreak = mw.ustring.find(s,'<%s*br')
local hasBullets = checkBullets and plainCount(s,'*') > 1
local hasBullets = checkBullets and mw.ustring.gsub(s,'*+') > 1
return not (hasComma or hasList or hasAnd or hasBreak or hasBullets)
return not (hasComma or hasList or hasAnd or hasBreak or hasBullets)
end
end
Anonymer Benutzer