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

Content deleted Content added
AnomieBOT (talk | contribs)
Updating published sources: POTDPageDeleter: * Yield to other tasks, as is standard.
AnomieBOT (talk | contribs)
Updating published sources: POTDPageDeleter: * Adjust for near-cosmetic change to the template for something almost no one will see in the first place.
Line 115:
my $intxt = $tok->{'revisions'}[0]{'slots'}{'main'}{'*'};
my $outtxt = $intxt;
$outtxt =~ s!\n\*\s*\[\[Template:POTD(?:[ _]protected|\{\{#ifeq:\{\{BASEPAGENAME\}\}\|POTD protected\|\|_protected(?:_| )protected\}\})/(?:\{\{SUBPAGENAME\}\}|$dt)(?:[/|][^]]*)?\]\][ \t]*!!g;
$outtxt =~ s!\n==\s*See also\s*==\s*(?=(?:\[\[Category:[^]]+\]\]\s*|<\!--(?>.*?-->)\s*)*(?:</noinclude>|$))!\n!;
$outtxt =~ s!<noinclude>\s*</noinclude>\s*$!!;