User:AnomieBOT/source/tasks/IMONumberRedirectCreator.pm: Difference between revisions
Content deleted Content added
Updating published sources: AccidentalLangLinkFixer, AltLinkTemplateSubster, CategoryCleaner, FlagIconRemover, IMONumberRedirectCreator, ShowByDateSubster: * Turn down limits on the iterators, to see if that helps the memory issue. |
Updating published sources: General: * Update for the addition of 'rvslots'. DatedCategoryDeleterTest: * Disable. It's clear that task won't be needed. BrokenRedirectDeleter: * Handle pages with newlines before the <code>#REDIRECT</code>. |
||
Line 103:
} else {
# Check if it's a redirect
my $txt = $tok->{'revisions'}[0]{'slots'}{'main'}{'*'};
unless($txt=~/$redir\[\[\s*(.+?)\s*\]\]/) {
$api->log("Skipping $title: Not a redirect");
|