User:AnomieBOT/source/tasks/POTDPageCreator.pm: Difference between revisions

Content deleted Content added
AnomieBOT (talk | contribs)
Updating published sources: POTDPageCreator: * Adjust edit summary because someone complained it wasn't obvious enough where things were being substed from.
AnomieBOT (talk | contribs)
Updating published sources: POTDPageCreator: * Adjust regex, people have started not leaving a newline.
 
Line 70:
return $res if $res;
 
if ( $outtxt=~s!^\s*\Q{{POTD/$date/{{#invoke:random|number|\E(\d+)\Q}}|{{{1|{{{style|default}}}}}}}}\E\s*\n!{{POTD protected/$date/{{#invoke:random|number|$1}}|{{{1|{{{style|default}}}}}}}}\n! ) {
my $n = $1;
for ( my $i = 1; $i <= $n; $i++ ) {