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

Content deleted Content added
AnomieBOT (talk | contribs)
Updating published sources: DeletionSortingCleaner: * Fix typo in overlong edit summary code.
AnomieBOT (talk | contribs)
Updating published sources: DeletionSortingCleaner: * Better handle weird ways people list things: excess whitespace (note <code>process_templates</code> already converts underscores and such) and miscapitalization.
Line 135:
my $name=shift;
 
return undef unless $name=~m!^(?i:Wikipedia|WP) *: *((?:Articles[Aa]rticles|Miscellany[Mm]iscellany) for deletion)/(.+)$!;
my $name2=$12;
 
# Normalize. People do weird things sometimes.
$name = "Wikipedia:\u$1/$2";
 
if(exists($dups{$name})){