Modulo:Bozza: differenze tra le versioni

Contenuto cancellato Contenuto aggiunto
m +
+
Riga 2:
 
local function removeFalsePositives(str)
return str:gsub("'<!%-%-.-%-%->"', ""'')
:gsub("'<nowiki>.-</nowiki>"', ""'')
end
 
Riga 12:
 
function p.controllo_categorie(frame)
local text = getPageContent():gsub('[Bb]ozze *da *revisionare', '')
if text:find("%[%[%s*[Cc]ategoria%s*:%s*[^%s].-%]%]" ) then
return "'[[Categoria:Bozze con categorie impreviste]]"'
end
end
Riga 20:
function p.revisione_richiesta(frame)
local text = getPageContent()
returnlocal pattern = text:find('%{[%{[ *[BbCc]ozzaategoria *in: *attesa[Bb]ozze *dida *revisionerevisionare *%}]%}') and 1 or ']'
return text:find(pattern) and 1 or ''
end